ButtonStyle

This section is regarding Methods and Properties available in the buttonStyle element.


Examples:
    stockChart.rangeSelector.buttonStyle.get(“backgroundColor”);
    stockChart.rangeSelector.buttonStyle.set(“borderColor”, “red”);
    stockChart.rangeSelector.buttonStyle.get(“labelFontSize”);


Note:
  • You can refer to Button Style Element for complete list of properties available.
  • StockChart should be rendered before you can access buttonStyle & its methods / properties.

Methods in Button Style

Method Description Example
get(String propertyName) Returns the specified property of buttonStyle. stockChart.rangeSelector.buttonStyle.get(“width”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of buttonStyle & optionally updates (default) the StockChart. stockChart.rangeSelector.buttonStyle.set(“labelFontColor”, “blue”);

Writable Properties in Button Style:

All Button Style options become available as properties after StockChart is rendered. 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 Button Style Element 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