maximum: Number/Date/Timestamp

Sets the maximum value of StockChart Slider.

Default: Defaults to maximum value on Navigator’s AxisX.
Examples: new Date(2017, 05, 24), 450, …
Note:
  • If maximum value is not set, it’s automatically calculated based on data passed to the navigator.
  • While setting maximum, it should be taken care that maximum should be greater than minimum.
  • maximum supports dateTime values in the form of Date object or timestamp.
  • maximum has higher precedence over endValue of inputFields and selectedRangeButtonIndex of rangeSelector.
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 navigator: {
   .
   .
   slider: {
     maximum: new Date(2017, 01, 01)
   },
   .
   .
 },
 .
 . 
});
stockChart.render();

Try Editing The Code


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