0 Replies Latest reply on May 28, 2007 5:49 AM by romanczar

    LineChart problems

    romanczar Level 1
      Hi!
      I am trying to get this data into a linechart:

      <resultsByDate>
      <answers date="03/01/2007" numberOfVotes="13" totalNumberOfVotes="13">
      <answer>
      <id>1</id>
      <answerText>Yes</answerText>
      <backgroundColor>0xff0000</backgroundColor>
      <results>5</results>
      </answer>
      <answer>
      <id>2</id>
      <answerText>No</answerText>
      <backgroundColor>0x00ff00</backgroundColor>
      <results>8</results>
      </answer>
      </answers>
      <answers date="03/02/2007" numberOfVotes="6" totalNumberOfVotes="19">
      <answer>
      <id>1</id>
      <answerText>Yes</answerText>
      <backgroundColor>0xff0000</backgroundColor>
      <results>1</results>
      </answer>
      <answer>
      <id>2</id>
      <answerText>No</answerText>
      <backgroundColor>0x00ff00</backgroundColor>
      <results>5</results>
      </answer>
      </answers>
      <answers date="03/03/2007" numberOfVotes="5" totalNumberOfVotes="24">
      <answer>
      <id>1</id>
      <answerText>Yes</answerText>
      <backgroundColor>0xff0000</backgroundColor>
      <results>3</results>
      </answer>
      <answer>
      <id>2</id>
      <answerText>No</answerText>
      <backgroundColor>0x00ff00</backgroundColor>
      <results>2</results>
      </answer>
      </answers>
      </resultsByDate>

      There will be multiple "answer" nodes. I guess I need to put a <mx:Lineseries> for each answer, but I don't know how to address it, as they only distinguishable by the nested tag <id>.

      Can Anybody help? I try to get a LineChart, the dates on the x-Axis, <results> on the y-Axis...