1 Reply Latest reply on Jun 1, 2009 9:40 PM by _Natasha_

    Modifying a flex column chart

    rcanulla Level 1

      Hi there,


      I'm trying to change the x axis to have four bars that measure categories. My bars show up, and track data, but are so thin and only in the far left quadrent.



              <mx:ColumnChart id="categoryChart" height="137" color="0x323232"
                  showDataTips="true" width="272" y="213">
                      <mx:CategoryAxis categoryField="category"/>
                      <mx:ColumnSeries yField="Health" name="Health" width="100"/>
                      <mx:ColumnSeries yField="Industrial"/>
                      <mx:ColumnSeries yField="Emerging"/>
                      <mx:ColumnSeries yField="Food"/>
              <mx:Legend id="categoryLegend" color="0x323232" y="358" x="10" width="280" direction="horizontal"/>



               private var health:int = 0;
               private var industrial:int = 0;
               private var emerging:int = 0;
               private var food:int = 0;



                    var categoryAC:ArrayCollection = new ArrayCollection([
                    {Health: health, Industrial: industrial, Emerging: emerging, Food: food}


      Also, how would I animate the data when it changes?