get(String propertyName)

Returns the specified style property of Range Buttons.

        propertyName: Name of the property

Example: stockChart.rangeSelector.buttonStyle.get(“backgroundColor”);

  • You can refer to Button Style Element for complete list of properties available.
  • StockChart should be rendered before you can use get method.

var stockChart = new CanvasJS.StockChart("container",
 rangeSelector: {
   buttonStyle: {
     // buttonStyle properties


Properties accessible via get method

Please refer to Button Style Element for the complete list of properties that can be accessed via get method.

Try it Yourself by Editing the Code below.

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