Required library edition:
Required library file: dhtmlxchart .js
Loads data from remote url
chart.load("data.xml"); chart.load("data.xml",function(){ //callback }); //or chart.load("data.xml","xml"); chart.load("data.json","json"); //or chart.load("data.xml","xml",function(){ //callback });
Callback is always the last parameter. Methos is async., so you need to use callback to catch the moment when data is really loaded in the chart.