dojo柱形图添加属性

1、给柱状图的柱子填充颜色

.addSeries("A",[45,56,12,23,78,67],{stroke:{color:"#FF0000",width:2},fill:"#00FF00"}).

2、给柱状图的柱子添加Tooltip

new dojox.charting.action2d.Tooltip(columns);

3、给柱形图添加动态感

new dojox.charting.action2d.Shake(columns,"default",{shiftY:0});

4、给柱状图的柱子添加复选框Legend

var columnLengend = new dojox.charting.widget.SelectableLegend({chart: columns},"columnsLegend");
04-29 03:16