我想使用堆叠百分比列绘制一些数据。但是数据是动态的,数据是通过ajax获取的。
这是其中一个 ajax 响应的示例-
X轴类别-
Array
(
[ID0] => 2013/07/22
[ID1] => 2013/07/23
[ID2] => 2013/07/24
[ID3] => 2013/07/25
)
系列数据和名称-
Array
(
[0] => Array
(
[ID1] => 5
[ID3] => 2
[ID4] => 1
[ID5] => 4
)
[1] => Array
(
[ID1] => 5
[ID3] => 1
[ID4] => 2
)
[2] => Array
(
[ID1] => 5
[ID2] => 1
[ID3] => 2
[ID4] => 3
[ID5] => 4
)
[3] => Array
(
[ID1] => 6
[ID2] => 3
[ID4] => 1
[ID5] => 1
)
)
这就是我想要的 - http://jsfiddle.net/NF9Yp/