Next
Prev
Default

To create a chart, the chart layout and the chart data (dataset) must be set by calling setLayout() (or setLayoutUR()) and setData() (or setDataURL()). The XML format is the only valid format of the layout, and the XML and Array formats are supported for the format of the chart data (dataset). Both layout and data can be passed to the functions as an argument of the string value (setLayout(), setData()) or as an argument of the URL location of the file (setLayoutURL(), setDataURL()).

This sample is to show how to set a URL location to the layout and to set a URL location to the dataset.

document.getElementById(id).setLayoutURL(layoutURL);
document.getElementById(id).setDataURL(dataURL);				

Layout : Sets the string value to the JavaScript variable in HTML

var layoutURL = "./LayoutXml/Column_3D_Layout.xml";

Dataset : Sets the URL location to the JavaScript variable in HTML

var dataURL = "./DataXml/singleData.xml";

© 2017 KoolChart. All rights reserved.