我有多个遵循以下示例格式的数组,我想知道如何以编程方式重组数组以用于 Highcharts(特别是 Highstock)。我希望能够比较每个数组的数据,如本演示中所示。[Date] 应该是 X 轴,[Close] 应该是给定数据点的 Y 轴。
数组示例:
Array
(
[0] => Array
(
[Date] => 2013-03-06
[Open] => 3.79
[High] => 3.64
[Low] => 3.48
[Close] => 3.52
[Volume] => 22184500
[Adj Close] => 3.72
)
[1] => Array
(
[Date] => 2013-03-05
[Open] => 3.63
[High] => 3.05
[Low] => 3.28
[Close] => 3.54
[Volume] => 32987900
[Adj Close] => 3.14
)
[2] => Array
(
[Date] => 2013-03-04
[Open] => 3.50
[High] => 3.67
[Low] => 3.50
[Close] => 3.64
[Volume] => 47933200
[Adj Close] => 3.84
)
)
如果您需要更多信息或有任何问题,请告诉我。
谢谢