Home Forums StockChart Support 1 Day difference in the start date in the Range Selector and the data provided Reply To: 1 Day difference in the start date in the Range Selector and the data provided

#44011

@indxx,

The range of charts in the stockchart is automatically calculated based on data being passed to navigator. To start the range of stockchart from first datapoint, you can set the minimum property of axisX in navigator to first datapoint as shown in the code snippet below.

navigator: {
     axisX:{
         minimum: new Date(2018,0,1)
     }
}

Kindly take a look at this JSFiddle for working code.

__
Sachin Bisht
Team CanvasJS