Toolbar

This section is regarding Methods and Properties available in Chart Toolbar element.


Example :
        chart.toolbar.get(“fontColor”);
        chart.toolbar.set(“fontColor”, “red”);

Note
  • Chart should be rendered before you can access toolbar & its methods / properties.

Toolbar Methods

Method Description Example
get(String propertyName) Returns the specified property of toolbar chart.toolbar.get(“backgroundColor”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of toolbar & optionally updates (default) the chart. chart.toolbar.set(“fontColor”, “red”);


Writable Properties in Toolbar:

All toolbar options become available as properties after Chart renders. You can access them either via get method or dot notation. But you can change / set those values only via set method.

Please refer to toolbar options for complete list of properties available.

Try it Yourself by Editing the Code below.

  Also See:    



If you have any questions, please feel free to ask in our forums.Ask Question