0 Replies Latest reply on Apr 18, 2008 11:20 AM by spacehog

    Read chart legend from XML

    spacehog Level 1
      I am trying to figure out how to add my legend to a chart by getting the info from my XML file.

      The XML looks like this

      <datapoints>
      <datapoint>
      <day>02/18/2008</day>
      <time>01:00:00</time>
      <ct>0</ct>
      </datapoint>
      <datapoint>
      <day>02/18/2008</day>
      <time>02:00:00</time>
      <ct>0</ct>
      </datapoint>
      <datapoint>
      <day>02/18/2008</day>
      <time>03:00:00</time>
      <ct>0</ct>
      </datapoint>
      </datapoints>

      I want to add a tag called <tool> that will appear just once that would be used to hold the string for the legend. How do I refer to that in my MXML?