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 datavar stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
    inputFields: {
      endValue: new Date(2017, 06, 01),
      .
    }
 },
 .
 .
});
stockChart.render();