何在ext js柱形图中设置最大条形图高度?(Ho to set a maximum bar chart height in ext js column charts?)

我使用x,y位置的项目来显示图表的子标题。 但是酒吧的高度已经超过了标题如何设置一个默认的酒吧高度在这里

i'm using items with x, y position to display the sub title of a chart. But bar height is over lapping the title how to set a default maximum bar height here

最满意答案

renderer: function(sprite, record, attr, index, store) { if(attr.height>=27) { attr.height=attr.height-27; attr.y=attr.y+27; } } //By using this code we can set maximum height of bar is it correct renderer: function(sprite, record, attr, index, store) { if(attr.height>=27) { attr.height=attr.height-27; attr.y=attr.y+27; } } //By using this code we can set maximum height of bar is it correct何在ext js柱形图中设置最大条形图高度?(Ho to set a maximum bar chart height in ext js column charts?)

我使用x,y位置的项目来显示图表的子标题。 但是酒吧的高度已经超过了标题如何设置一个默认的酒吧高度在这里

i'm using items with x, y position to display the sub title of a chart. But bar height is over lapping the title how to set a default maximum bar height here

最满意答案

renderer: function(sprite, record, attr, index, store) { if(attr.height>=27) { attr.height=attr.height-27; attr.y=attr.y+27; } } //By using this code we can set maximum height of bar is it correct renderer: function(sprite, record, attr, index, store) { if(attr.height>=27) { attr.height=attr.height-27; attr.y=attr.y+27; } } //By using this code we can set maximum height of bar is it correct