我想绘制一个两列堆叠的条形图,数据如下图所示,是否可能?
10/09 0.00%-36.94%528.2502 0.0000
0.0000 333.0924 0.0000 16.1814 178.9764
10/08 0.00%-40.19%527.7252 0.0000
3.4708 310.5550 1.6321 0.0000 212.0673
10/07 0.00%-38.09%527.4240 0.0000
0.0000 326.5490 0.0000 8.5167 192.3583
10/06 0.00%-40.41%527.4240 0.0000
2.9404 306.9600 4.3696 0.0000 213.1540
![替代文字] [1]
答案 0 :(得分:0)
关于获得双柱条形图,这很容易。您只需在图表中添加两个不同的CPBarPlot即可。然后,在实现CPBarPlotDataSource方法时,您需要返回正确的值,具体取决于作为参数传递的绘图。
不幸的是,Core-Plot目前不支持堆积条形图。见下面的帖子: http://groups.google.com/group/coreplot-discuss/browse_thread/thread/a65885bf16aa5a5e/b3b82880d13482f2?hl=en&lnk=gst&q=stack#b3b82880d13482f2