get(String propertyName)

Returns the specified property of slider.


Parameters:
        propertyName: Name of the property

Example: stockChart.navigator.slider.get(“maskColor”);

Note:
  • You can refer to Slider Elements for complete list of properties available.
  • StockChart should be rendered before you can use get method.

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 .
 .
});
stockChart.render();

console.log(stockChart.navigator.slider.get("minimum"));

Properties accessible via get method

Please refer to Slider Elements for the complete list of properties that can be accessed via get.




Try it Yourself by Editing the Code below.


  Also See:    



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