Sets the index of Range Buttons that has to be selected by default.
var stockChart = new CanvasJS.StockChart("container", { . . rangeSelector: { selectedRangeButtonIndex: 2, . . }, . . }); stockChart.render();
Also See: