timestamp - Highcharts StockChart - xAxis data is different than data on Tooltip -


i'm having issue , multiplied timestamp mysql query 1000, working, problem inside tooltip says 9 nov , on xaxis saying 10 nov, 10 nov same in database, need displayed 10 nov inside tooltip, somehow managed using tooltip formatter option line on chart when mousehoverd on behind 10th nov, must on 10 nov.

$('#chartviews').highcharts('stockchart',  {      rangeselector: {         inputenabled: false     },      title: {         text: ''     },     chart: {         backgroundcolor: '#24222b'     },     xaxis: {         type: 'date'     },     series: [{         name: 'views',         data: json,         tooltip: {             valuedecimals: 2         }     }] }); 

json string is:

[[1414953000000,1],[1415039400000,2],[1415212200000,1],[1415557800000,1],[1415644200000,3]]

it timezone issue, correct

$x['date'] = (int)strtotime($x['timestamp'].' +5 hours 30 minutes') * 1000;


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -