2 Replies Latest reply on Mar 16, 2010 8:52 AM by DMcQ

    maxColumnWidth for ColumnSeries doesn't work?

    DMcQ Level 1

      It seems like a simple attribute but I can't seem to get maxColumnWidth to change the width of my column series in a ColumnChart.

       

      I've set it like this...

       

      <mx:ColumnChart id="chart"
                   width="100%" height="100%"
                   dataProvider="{fakeData}"
                  maxColumnWidth="15"            
                  showDataTips="true">

       

      And also tried it like this in the series element...

       

      <mx:series>
                      <mx:ColumnSeries             
                          xField="scenario"
                          displayName="Energy"
                          yField="energy"
                           maxColumnWidth="15"
                          />              
      </mx:series>


      It seems so simple but it doesn't work...the bar still expands past this width as the chart takes up the space in its container.

       

      Any suggestions are greatly appreciated!

       

      - Daniel