endValue: Number/Date/Timestamp

Sets the maximum / end value of viewport in all the charts. endValue can be defined in numeric or dateTime values (in the form of Date object or timestamp).


Default: Auto Calculated based on data
Example: new Date(2018, 05, 15), 290, …

Note
  • If endValue is not set, it’s automatically calculated based on data passed to the StockChart.
  • While setting endValue, it should be taken care that endValue should be greater than startValue.
  • endValue can be overridden by setting maximum property of Slider.


var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
    inputFields: {
      endValue: new Date(2017, 06, 01),
      .
    }
 },
 .
 .
});
stockChart.render();



Try it Yourself by Editing the Code below.




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