Defines the data type of values in Inputfields. Data type of values are generally determined by x-values of data in StockChart.
Default: Auto Calculated based on datavar stockChart = new CanvasJS.StockChart("container", { . . rangeSelector: { inputFields: { valueType: "number", //Change it to "dateTime" . } }, . . }); stockChart.render();