View Full Version : Stacked Bar Chart Bar Width/Thickness

17 Aug 2009, 12:18 PM
I've searched the forums and unable to find an answer to this. Trying to make the thickness of the bars in a stacked bar chart constant - right now they appear to resize thickness based on how many items are on the Y axis and the height of the chart. Problem is, with very little data they end up resizing to thin lines which are very hard to see.

Can someone tell the right style attribute to apply to make the thickness constant or set a min size. Thanks,


19 Aug 2009, 8:01 AM
Giving a demo tomorrow and I can barely see the bars, even though they are very well spread apart. I just need to manually set the minimum width or a width property. Can't find any documentation on it. Thanks in advance for any quick help!

16 Oct 2009, 10:51 AM
To change the width of the bar, add the following to your series definition:
series: [{
xField: 'comedy',
displayName: 'Comedy',
style: {color:0x6238A7, size:8}

16 Oct 2009, 10:56 AM
I hope that the charts chapter I just submitted for the book will help developers like yourself in the future.