3
votes

Is it possible to get the values of the date-input-boxes from rangeSelector?

2

2 Answers

6
votes
var chart = new Highcharts.StockChart(chartingOptions);
...
var zoomStartEpochTime = chart.rangeSelector.leftBox.HCTime;
var zoomEndEpochTime = chart.rangeSelector.rightBox.HCTime;

Alternatively you can query the xAxis's extreme values for the same

var zoomStartEpochTime = chart.xAxis[0].getExtremes().min;
var zoomEndEpochTime = chart.xAxis[0].getExtremes().max;
5
votes

Yes you can get these values. If you are using JQuery:

var minDate = $('input.highcharts-range-selector:eq(0)').val();
var maxDate = $('input.highcharts-range-selector:eq(1)').val();