selectedRangeButtonIndex: Number

Sets the index of Range Buttons that has to be selected by default.


Default: none
Examples: 1, 2, …

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



Try it Yourself by Editing the Code below.




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