0 Replies Latest reply on Jul 3, 2007 9:51 PM by Kai001

    Barchart from XML

      I've recently been trying to use the Charts that come with flex. I notice that the documentation tells you 20 ways to provide data and it doesn't tell you how to bind a chart to an xml file through an httpService.

      I was wondering, how can I use an XML file on a barchart simply? Without hundreds of lines of AS.

      What I tried never worked:
      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:HTTPService url="Data.xml" id="srv" resultFormat="array"/>
      <mx:ArrayCollection source="{srv.lastResult.data}" id="News"/>
      <mx:BarChart id="barchart1" height="262" dataProvider="News">
      <mx:BarSeries displayName="Series 1" xField="apple"/>
      <mx:Legend dataProvider="{barchart1}"/>

      I'd like to use this XML file: http://www.nintendowifi.com/gaminghub/displayLeaders.do?gameCode=ADM'
      Put the players name at the left and put the "value" field as the width of a bar.

      Any help is greatly appreciated!! :D