How to pass time in “highcharts”?

前端 未结 3 1397
刺人心
刺人心 2020-12-12 05:30

i am passing data like this

$chart->series[] = array(\'data\' => array());
in array i have data in string  
1 => string \'11:03:01\' (length=8)
2 =         


        
3条回答
  •  执念已碎
    2020-12-12 05:39

    process the array with times in a loop and add each item to a variable that is seperated by comma..

    then finally put

    series: []
    

    assuming $str contains values:

    $str = "'11:03:01', '11:07:56'";
    

提交回复
热议问题