Highcharts(highstock) line chart Tooltip shows previous date -
i using highcharts(highstock) v4.2.5. have linechart irregular date values on xaxis, , float values on yaxis. problem on hover, tooltip shows previous date values of next date.
e.g hovering on 06-apr-2014 data point, shows tooltip wrong date 05-apr-2016 correct data values.
why date in tooltip showing previous day?
my js code below
{ "xaxis": { "type": "linear" }, "tooltip": { "bordercolor" : "red" }, "credits" : { "enabled" : true }, "navigator" :{ "enabled": true }, "scrollbar" :{ "enabled": true }, "rangeselector" : { "allbuttonsenabled" : true }, "legend" : { "enabled" : true }, "title" : { "text" : "" }, "series" : [] }
json returned server is
{ "multilinedata": [{ "name": "bhibor o/n rate", "data": [ [1377637200000, 2.25], -> 28-aug-2013 [1396731600000, 1] -> 06-apr-2014 ] }] }
i fixed it, passing time 24:00:00 date conversion method. passing time, date not pushing back.
thanks @sebastian bochan , @jlbriggs
Comments
Post a Comment