Next
Update
Prev
Default

KoolChart provides the theme (or “look-and-feel” or “skin”), which allows you to set the design of the chart with a single click

This sample chart is to show how to set the pastel theme to the chart when the chart is initially loaded.

If you want to set a theme when the chart is initially loaded, you must call the JavaScript API, setTheme("theme") before setLayout() and setData() are called.

...
function chartReadyHandler(id)
{
  document.getElementById(id).setTheme("pastel");
  document.getElementById(id).setLayout(layoutStr);
  document.getElementById(id).setData(chartData);
}

© 2017 KoolChart. All rights reserved.