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.

       

      Chart

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

       

      Vars

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

       

      ArrayCollection

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

       

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