0 Replies Latest reply on Jul 22, 2006 2:22 AM by rickarddahlstrand

    Charting - mutiple values in XML with the same id

    rickarddahlstrand
      Hi,

      When I export data from rrdtool I get a xml-file with multiple values with the same tag-name (v). Is there a way to transform this into multiple series in my AreaChart?

      Rickard.

      <xport>
      <data>
      <row><t>1153470600</t><v>6.3773341734e+01</v><v>6.1874135668e+01</v></row>
      <row><t>1153470900</t><v>6.3837381056e+01</v><v>6.1822602388e+01</v></row>
      <row><t>1153472100</t><v>6.8332877136e+01</v><v>6.6292065226e+01</v></row>
      </data>
      </xport>


      <mx:AreaChart id="mychart" height="244" width="100%"
      paddingRight="5" paddingLeft="5"
      showDataTips="true" dataProvider="{httpService.lastResult.xport.data.row}" >

      <mx:horizontalAxis>
      <dta:EgenDateTimeAxis parseFunction="myDateParseFunction" displayLocalTime="true"/>
      </mx:horizontalAxis>

      <mx:verticalAxis>
      <mx:LinearAxis baseAtZero="true" maximumLabelPrecision="2" />
      </mx:verticalAxis>

      <mx:series>
      <mx:AreaSeries yField="v" xField="t" form="curve" displayName="Load" />
      </mx:series>
      </mx:AreaChart>