Next
Prev

You can create multple charts in a single webpage using KoolChart. This sample charts are to show how to create two defferent types of charts with two different dataset.

var chartVars1 = "KoolOnLoadCallFunction=chartReadyHandler";
var chartVars2 = "KoolOnLoadCallFunction=chartReadyHandler2";

KoolChart.create("chart1", "chartHolder", chartVars1, cWidth, cHeight);
KoolChart.create("chart2", "chartHolder2", chartVars2, cWidth, cHeight);
	
function chartReadyHandler(id) {
  document.getElementById(id).setLayout(layoutStr);
  document.getElementById(id).setData(chartData);
}
	
function chartReadyHandler2(id) {
  document.getElementById(id).setLayout(layoutStr2);
  document.getElementById(id).setData(chartData2);
}

© 2017 KoolChart. All rights reserved.