Reputation: 3263
I am using Highstock to show time based values. I need to get the date range shown in the chart for other purposes. Is there some easy way to get the begin-end values?
Upvotes: 1
Views: 2390
Reputation: 3294
Use getExtremes
var extremes = chart.xAxis[0].getExtremes(),
start = new Date(extremes.min),
end = new Date(extremes.max);
Upvotes: 8