1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    11
    Vote Rating
    0
    mathec is on a distinguished road

      0  

    Default Stacked Bar Chart Bar Width/Thickness

    Stacked Bar Chart Bar Width/Thickness


    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,

    C

  2. #2
    Ext User
    Join Date
    Feb 2009
    Posts
    11
    Vote Rating
    0
    mathec is on a distinguished road

      0  

    Default Anyone? Width of Barchart bars?

    Anyone? Width of Barchart bars?


    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!

  3. #3
    Ext User
    Join Date
    Oct 2009
    Posts
    1
    Vote Rating
    0
    pachao is on a distinguished road

      0  

    Default


    To change the width of the bar, add the following to your series definition:
    e.g.
    series: [{
    xField: 'comedy',
    displayName: 'Comedy',
    style: {color:0x6238A7, size:8}
    }]

  4. #4
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    I hope that the charts chapter I just submitted for the book will help developers like yourself in the future.

Thread Participants: 2