Plot chart used to display two series
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:XML id="plotDataXML"> <plotdata> <one> <data x="1" y="5" /> <data x="3" y="8" /> <data x="3" y="9" /> <data x="5" y="9" /> </one> <two> <data x="2" y="1" /> <data x="2" y="3" /> <data x="4" y="7" /> <data x="4" y="4" /> </two> </plotdata> </mx:XML> <mx:XMLListCollection source="{plotDataXML.one.data}" id="plotData1" /> <mx:XMLListCollection source="{plotDataXML.two.data}" id="plotData2" /> <mx:Panel title="Plot Data" width="500" height="200" layout="horizontal"> <mx:Legend dataProvider="{plotChart}" /> <mx:PlotChart id="plotChart" height="100%" width="100%"> <mx:series> <mx:PlotSeries dataProvider="{plotData1}" displayName="One" xField="@x" yField="@y" radius="4" /> <mx:PlotSeries dataProvider="{plotData2}" displayName="Two" xField="@x" yField="@y" radius="4" /> </mx:series> </mx:PlotChart> </mx:Panel> </mx:Application>