1 Reply Latest reply on Dec 3, 2007 3:55 PM by dajj123

    flex barChart column xml issue

    dajj123
      I have a xml feeding a barChart. it seems to work but I am trying to dislay a series of bars for every month. I can see the data loads but the bars are stacked on top of each other and not side by side. The code looks good based on the samples I saw but they did not use xml to load the data.

      here is my chart
      <mx:BarChart id="barCh" showDataTips="true" dataProvider="{results.result}">
      <mx:horizontalAxis>
      <mx:CategoryAxis
      categoryField="month"
      />
      </mx:horizontalAxis>

      <mx:series>
      <mx:ColumnSeries
      xField="month"
      yField="STRUCTURES"
      displayName="STRUCTURES"
      />
      <mx:ColumnSeries
      xField="month"
      yField="AVIONICS"
      displayName="AVIONICS"
      />
      </mx:series>
      </mx:BarChart>

      my xml

      <data>
      <result month="Jan">
      <STRUCTURES>0</STRUCTURES>
      <AVIONICS>0</AVIONICS>
      <PROPULSION>0</PROPULSION>
      <FACILITIES>0</FACILITIES>
      <LAB>0</LAB>
      <SHIPPING>0</SHIPPING>
      <MISC>554.95</MISC>
      <TAX>43.01</TAX>
      <MONTH_END>597.96</MONTH_END>
      </result>
      <result month="Feb">
      <STRUCTURES>572.23</STRUCTURES>
      <AVIONICS>0</AVIONICS>
      <PROPULSION>0</PROPULSION>
      <FACILITIES>11,104.00</FACILITIES>
      <LAB>619.19</LAB>
      <SHIPPING>0</SHIPPING>
      <MISC>236.02</MISC>
      <TAX>108.02</TAX>
      <MONTH_END>12,639.46</MONTH_END>
      </result>
      </data>

      Any help would be good.