我想在谷歌折线图中生成相同的图片,但我不能这样做。我有 A、B 和 C,这些字母中的每一个都有一些值(A1、A2、B1、B2 ... 例如)日期相同,只是时间不同(分钟或秒,但天相似)我只能生成一个一个日期一个字母的点:
[cols] => Array
(
[0] => Array
(
[id] =>
[label] => Timestamp
[type] => string
)
[1] => Array
(
[id] =>
[label] => A
[type] => number
)
[2] => Array
(
[id] =>
[label] => B
[type] => number
)
[3] => Array
(
[id] =>
[label] => C
[type] => number
)
)
[rows] => Array
(
[0] => Array
(
[c] => Array
(
[0] => Array
(
[v] => 2014-01-30
)
[1] => Array
(
[v] => 120
)
[2] => Array
(
[v] => 100
)
[3] => Array
(
[v] => 35
)
)
)
[1] => Array
(
[c] => Array
(
[0] => Array
(
[v] => 2014-01-30
)
[1] => Array
(
[v] => 334
)
[2] => Array
(
[v] => 55
)
[3] => Array
(
[v] => 15
)
)
)
)
这些代码给了我 3 个单独的行,在一个日期( 2014-01-30 )中只有 3 个值,下一个日期也是相同的( 2014-01-30 )但是我想在一行中收集所有这些数据,正如我在下面的照片。提前感谢大家!