i trying use highstock chart navigator window way of filtering content based on time on page.
ideally user narrow navigator time of interest , able pass start , end date/time button filter page.
does know how extract these dates/times chart?
thanks in advance
dave
create highstock chart , pass on options shown in code exaple. creates handler aftersetextremes event. can see in code allows extract min , max date values unix-like timestamp. can whatever want these values. idea set scrollbar.liveredraw false, otherwise aftersetextremes fire permanently while dragging navigator.
$('#chart-main').highcharts('stockchart', { ... other options xaxis:{ events: { aftersetextremes:function(event){ console.log('---- date chart object after setting extremes'); console.log(new date(event.min)); console.log(new date(event.max)); } }, type: 'datetime' }, scrollbar:{ liveredraw: false }, });
Comments
Post a Comment