Sets the type of button’s range.
rangeType is the unit of range property. If required interval is 6 months, you need to set the range as 6 and rangeType as “month”.
Default: “month”var stockChart = new CanvasJS.StockChart("container", { . . rangeSelector: { . . buttons: [ { . rangeType: "month", . } ] }, . . }); stockChart.render();
Also See: