Buttons

This section is regarding Methods and Properties available in Range Buttons element.


Examples:
    stockChart.rangeSelector.button[0].get(“label”);
    stockChart.rangeSelector.button[0].set(“rangeType”, “second”);
    stockChart.rangeSelector.button[0].get(“range”);

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

Methods in Buttons

Method Description Example
get(String propertyName) Returns the specified property of buttons. stockChart.rangeSelector.button[0].get(“rangeType”);
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of buttons & optionally updates (default) the StockChart. stockChart.rangeSelector.button[0].set(“range”, 6);

Writable Properties in Buttons:

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