PDA

View Full Version : Grouped bar chart - bars in group glued together - is it possible?



ivanatora
14 Aug 2013, 11:34 PM
Hello,

I'm using ExtJS 4.1.1.
I'm having a grouped bar chart like that: http://jsfiddle.net/mV9c5/1/ I want bars in each group to be glued together with no space between them. Is that possible? I tried various things with `gutter` and `groupGutter` config, but it doesn't seem to change anything.

How can I stuck the bars together?

[edit] Okay, so `groupGutter` is fine, but the problem is that I'm using renderer() to adjust bars height. If I do:
attributes.height = 13;
then `groupGutter` no longer works. Is there another way to set bars height without using renderer()?

Gary Schlosberg
16 Aug 2013, 12:43 PM
Perhaps I'm misunderstanding what your goal is here, but it would seem that if you want the height of the bars to be 13, and have no space between them, you will need to decrease the height of the overall chart. If you set the window height to 230 pixels (and enable 'groupGutter: 1'), then the bars are 'glued' and the height of each is 13 pixels.