2 Replies Latest reply on Feb 8, 2009 12:15 AM by vikceo

    Chart question


      I have the data like
      Date Country production
      5-feb-09 IND 20
      5-feb-09 US 15
      4-Feb-09 IND 30
      4-Feb-0 IND 40

      I have to show this data as a bar char.
      Where horizontal axis should be date.
      Vertical axis will show production
      and chart will show 2 pillar per date (one for ind and another for US).

      I tried various ways but could not get the desired results. Any suggestions for the required mxml for this.
      I tried like:
      <mx:BarChart id="myChart"
      width="100%" height="100%"
      <mx:CategoryAxis categoryField="date"/>
      <mx:BarSeries displayName="Yesterday" xField="date" yField="production" />
      <mx:BarSeries displayName="Today" xField="date" yField="production" />