1 Reply Latest reply on Jan 29, 2009 5:03 AM by Newsgroup_User

    columnchart combining data

      I'm new to flex charting, but am having what I hope is a very basic problem. I want to graph quarterly data that spans multiple years. In the example, I would like to chart 3 years or quarterly data, but the data ends up being combined. Ie all of the Q1 data combines together, all of the Q2 data combines, etc.

      Any help would be greatly appreciated.

      Code is attached.
        • 1. Re: columnchart combining data
          Level 7

          "JackFreedo" <webforumsuser@macromedia.com> wrote in message
          news:glr32e$eun$1@forums.macromedia.com...
          > I'm new to flex charting, but am having what I hope is a very basic
          > problem. I
          > want to graph quarterly data that spans multiple years. In the example, I
          > would
          > like to chart 3 years or quarterly data, but the data ends up being
          > combined.
          > Ie all of the Q1 data combines together, all of the Q2 data combines, etc.
          That's what you told it to do:

          > <mx:horizontalAxis>
          > <mx:CategoryAxis categoryField="quarter"/>
          > </mx:horizontalAxis>
          > <mx:series>
          > <mx:ColumnSeries xField="quarter"
          > yField="revenue"
          > displayName="Revenue"
          > fills="{color}"/>
          > </mx:series>

          Probably the best way to handle this is to add the year to each quarter
          field so that it will be different quarters, or use a dataFunction that just
          returns the quarter data.