0 Replies Latest reply on Mar 31, 2010 5:07 AM by ssgopi

    Piechart and column chart

    ssgopi

      Hi Experts,

       

      I am new to Flex.

       

      Here my reqment is I want a pie chart at area level,Once user clicks any of Area(Slice in Piechart) In pie chart then beside piechart it should display a column chart with region and its value related to that particular Area.

       

      Intially in Piechart default to any of the Area value.

       

       

      Here I am providing my XML data.

       

       

      <DATA><New_DataSet_1><NEW_DATASET_1_ROW>
      <AREA>MW</AREA>
      <REGION>MW</REGION>
      <NTF_QTY>6541</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>MW</AREA>
      <REGION>PI</REGION>
      <NTF_QTY>15189</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>NE</AREA>
      <REGION>NN</REGION>
      <NTF_QTY>7171</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>NE</AREA>
      <REGION>NY</REGION>
      <NTF_QTY>11051</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>NE</AREA>
      <REGION>PH</REGION>
      <NTF_QTY>6505</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>SO</AREA>
      <REGION>FL</REGION>
      <NTF_QTY>7724</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>SO</AREA>
      <REGION>GA</REGION>
      <NTF_QTY>7839</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>SO</AREA>
      <REGION>HO</REGION>
      <NTF_QTY>5945</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>SO</AREA>
      <REGION>SE</REGION>
      <NTF_QTY>18108</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>SO</AREA>
      <REGION>TX</REGION>
      <NTF_QTY>4643</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>WE</AREA>
      <REGION>CN</REGION>
      <NTF_QTY>6704</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>WE</AREA>
      <REGION>CS</REGION>
      <NTF_QTY>17621</NTF_QTY>
      </NEW_DATASET_1_ROW><NEW_DATASET_1_ROW>
      <AREA>WE</AREA>
      <REGION>PN</REGION>
      <NTF_QTY>5250</NTF_QTY>
      </NEW_DATASET_1_ROW>
      </New_DataSet_1>
      <New_DataSet_2>
      <NEW_DATASET_2_ROW>
      <AREA_A>MW</AREA_A>
      <NTF_QTY_N>42621</NTF_QTY_N>
      </NEW_DATASET_2_ROW><NEW_DATASET_2_ROW>
      <AREA_A>NE</AREA_A>
      <NTF_QTY_N>40340</NTF_QTY_N>
      </NEW_DATASET_2_ROW><NEW_DATASET_2_ROW>
      <AREA_A>SO</AREA_A>
      <NTF_QTY_N>46158</NTF_QTY_N>
      </NEW_DATASET_2_ROW><NEW_DATASET_2_ROW>
      <AREA_A>WE</AREA_A>
      <NTF_QTY_N>44704</NTF_QTY_N>
      </NEW_DATASET_2_ROW></New_DataSet_2></DATA>
      
      
      

       

      For pie chart data is from

      DATA/New_DataSet_2/NEW_DATASET_2_ROW----from this Area and NTF_QTY_N

       

      If User clicked on any of the area from Piechart it shd display a colum chart,for this dataprovider is

       

      DATA/New_DataSet_1/NEW_DATASET_1_ROW----From here Region belongs to that Area and NTF_QTY

       

       

      Pls can any one help me to get mxml file....Its a bit Urgent...

       

       

       

       

      Thanks in advance.....