All series on a given axis must be of the same data type

后端 未结 1 1320
星月不相逢
星月不相逢 2020-12-11 13:28

I early had problems with formatting the time, but now having problem with showing the google chart visualiszation out of this error: All series on a given axis must be of t

相关标签:
1条回答
  • 2020-12-11 14:11

    Your column definitions are not correct: you want only 1 column for date & time, not two:

    $table['cols'] = array(
        array('label' => 'Date & Time', 'type' => 'datetime'),
        array('label' => 'PH', 'type' => 'number'),
        array('label' => 'temperature','type' => 'number'), 
        array('label' => 'Chlorine','type' => 'number')
    );
    
    0 讨论(0)
提交回复
热议问题