Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 graphael 为我的数据绘制条形图,但不知道如何为条形图添加标签。
var r = Raphael(element); r.hbarchart(10, 20, 500, 220, barData, {colors:colors, type:'square'}).hover(fin, fout);
调用label您的图表对象。
label
var barChart = r.g.barchart(0, 0, 200, 200, [3,2,1]); barChart.label(['a','b','c']);