highcharts - Select custom date range on highstock control -
i using highstock control , want set custom highlighted date range control via js. example of task: load data week control , highlight data last day since 16:00
i tried using code when initializing chart control:
rangeselector: { buttons: [{ type: 'day', count: 1, text: '1d' }], selected: 0 } but code highlights whole timespan last 24 hours, while need highlight last day 16:00. how can set custom date?
instead of using rangeselector, use min , max xaxis, example:
xaxis: { min: date.utc(2013, 6, 17, 16, 00), //previous day @ 16.00 max: new date().gettime() //get actual time }
Comments
Post a Comment