Slider

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


Examples:
    stockChart.navigator.slider.get(“handleColor”);
    stockChart.navigator.slider.set(“maskOpacity”, 0.8);
    stockChart.navigator.slider.get(“outlineColor”);

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

Methods in Slider

Method Description Example
get(String propertyName) Returns the specified property of slider. stockChart.navigator.slider.get(“handleColor”)
set(String propertyName, Mixed value [,Boolean updateChart = true]) Sets the specified property of slider & optionally updates (default) the StockChart. stockChart.navigator.slider.set(“handleColor”, “red”)

Writable Properties in Slider:

All Slider 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 Slider Element 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