Highcharts data series issue with ajax/json and PHP

后端 未结 5 1444
庸人自扰
庸人自扰 2020-12-09 12:07

This is my first request here, and I\'ve read many of the other related posts on this same issue, but I\'m STILL getting stuck and pretty much at my wits end on this... So a

5条回答
  •  一向
    一向 (楼主)
    2020-12-09 12:34

    Checked in PHP5.5

    You can simply add this into the json with the data series

    $date = '31-12-2015 00:00:00';
    $datetimeUTC = (strtotime($date) * 1000);
    $data[] = [$datetimeUTC, (float) $value];
    

提交回复
热议问题