valueType: String

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 data
Options: “number”, “dateTime”


var stockChart = new CanvasJS.StockChart("container",
 rangeSelector: {
   inputFields: {
     valueType: "number",  //Change it to "dateTime"

Try it Yourself by Editing the Code below.

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