The chart layout and the chart data (dataset) can be passed to KoolChart.create() as an argument, which makes no need to call setLayout() and setData().

This sample is to show how to set the variable, chartVars with setting the chart layout and dataset, and to pass the variable to the function, KoolChart.create().

var chartVars
var layoutURL = "./LayoutXml/Column_3D_Layout.xml";	
chartVars = "layoutURL="+layoutURL;
var dataURL = "./DataXml/multiData2.xml";
chartVars += "&dataURL="+dataURL;
KoolChart.create("chart1", "chartHolder", chartVars, cWidth, cHeight);	

© 2017 KoolChart. All rights reserved.