0 Replies Latest reply on Jun 15, 2007 6:50 AM by adg1974

    Column chart with multiple types??

    adg1974
      Hi,

      I am new in Flex development and need some help.

      I am trying to create a Flex Column Chart which is clustered as well as stacked.

      For example, consider the following array collection:

      private var medalsAC:ArrayCollection = new ArrayCollection( [
      { Country: "USA", Gold: 35, Silver:39, Bronze: 29, Year: "2004" },
      { Country: "China", Gold: 32, Silver:17, Bronze: 14 , Year: "2004"},
      { Country: "Russia", Gold: 27, Silver:27, Bronze: 38, Year: "2004" },
      { Country: "USA", Gold: 39, Silver:25, Bronze: 33, Year: "2000" },
      { Country: "China", Gold: 28, Silver:16, Bronze: 15 , Year: "2000"},
      { Country: "Russia", Gold: 32, Silver:28, Bronze: 28, Year: "2000" },
      { Country: "USA", Gold: 44, Silver:32, Bronze: 25, Year: "1996" },
      { Country: "China", Gold: 16, Silver:22, Bronze: 12, Year: "1996"},
      { Country: "Russia", Gold: 26, Silver:21, Bronze: 16, Year: "1996" }
      ]);

      Now, I want to create a column chart with this array collection as dataprovider. The category (x-axis) field should be "Year" and the columns for the medals won by each "Country" should be clustered columns. The number of "Gold", "Silver" and "Bronze" medals should be presented as stacked columns.

      Sorry for not being very clear. The final output I am asking for should look like this.

      | S |
      | T |
      | A |
      | C |
      | K |
      | E |
      | D |
      | - |
      | C |
      | O |
      | L |
      | U |
      | M |
      | N |
      | 1 | --- 2 --- 3 --- --- 4 --- 5 --- 6 --- --- 7 --- 8 --- 9
      --------------------------------------------------------------------->
      USA CHN RUS USA CHN RUS USA CHN RUS
      -------1996------- ------2000-------- -------2004------

      Is it possible to do in Flex?

      Thanks in advance.