Hi , I am trying to drive a pie chart from the  xml file. My xml data
is similar to the sample data here ,I tried many ways , but failed.The
sample data file is day piedata.xml

<NewDataSet>
<Table>
    <SCPM>3</SCPM>
    <PM>5</PM>
   </Table>
</NewDataSet>
I need to show SCPM and PM  on my pie chart.I tried using
httpservice.Can someone send me correct code orcode with any other
method(XML collections or array collections).I really appreciate for
the help.Thanks in advance
<mx:HTTPService id="srv" url="piedata.xml" resultFormat="e4x" />
    <mx:Model id="myXML" source="/piedata.xml"/>
     <mx:PieChart id="pie"
          dataProvider="{srv.lastResult.NewDataSet}"
          showDataTips="true"
       height="254">
          <mx:series>
              <mx:PieSeries  field="table.item[...@scpm"
nameField="tab...@scpm"
                  labelPosition="callout"
              />
          </mx:series>
      </mx:PieChart>

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to