如何逐个更改柱形图的列宽?我需要这样的图表:
_ __
| | ____ | |
| | | | | |
| | | | | |
|_| |____| |__|
答案 0 :(得分:2)
...
series: [
{
type: 'column',
axis: 'left',
gutter: 10,
style: {
width: 50 //<-- Specify you Column width here
},
xField: 'title',
yField: ['totaltodotime', 'workdone'],
stacked: true,
...
答案 1 :(得分:0)
renderer: function(sprite, record, attr, index, store) {
var color = selectedColor;
if (unique condition to identify the column ) {
return Ext.apply(attr, {
fill: color,
width: 100,x:50,y:50
});
}
else(another condition) {
return Ext.apply(attr, {
fill: color
,width: 50,
});
}
},
you can use record or index or store to identify the column being rendered