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 Editing The Code


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