0

我有一个简单的单列堆积条形图。

这在操作方面有效,但我想:1)设置每个条的颜色 2)找到类型选项列表(类型:“软”)

var b = Raphael("holder"),
data = [[75], [150], [300]];
txtattr = { font: "12px sans-serif" };

//(location_LR, location_TB)
b.text(85, 80, "Simple one column, stacked, bar chart").attr(txtattr);
//(location_LR, location_TB, width, height)
b.barchart(50, 80, 80, 210, data, {stacked: true, type: "soft"});

谢谢

4

0 回答 0