DHTMLX Docs & Samples Explorer

Index
dhtmlxchart
API Methods

## parse (object, type)

Required library edition:

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");