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

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

  • StockChart 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 stockChart.toolbar.get(“backgroundColor”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of toolbar & optionally updates (default) the StockChart. stockChart.toolbar.set(“fontColor”, “red”);

Writable Properties in Toolbar:

All toolbar options become available as properties after StockChart 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.

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