DHTMLX Docs & Samples Explorer

parse (object, type)

Required library edition: This method works with any edition of DHTMLX library

Required library file: dhtmlxchart.js

Parse an object or a string and fill the chart by parsed items.

  • object - string or object
    • jsarray - string or array
    • json - string or object
    • xml, html, csv - string
  • type - type of data
    • “xml”
    • “html”
    • “json”
    • “jsarray”
    • “csv”
	chart.parse("<data> ... </data>");
	//or
	chart.parse([[1,2,3],[4,5,6]],"jsarray");