开发者

How can I create a graph system based on the score of my simple leaders.xml file?

I have this xml file called leaders.xml as below. When the "student" end with my test the score it is shown to him and saved into that file. What I do is to show the students in a top 10 order but I need to create something also like a graph. The graph should contain the name of the student and the score. I don't mind if it is a bar graph or something simpler. All the questions are 10.

What do you suggest me to do? All of your examples/code/scripts are highly appreciated. Thank you

<users>
  <user>
    <name>Bobby</name>
    <score>5</score>
  </user>
  <user>
    <n开发者_开发知识库ame>Billy</name>
    <score>1</score>
  </user>
</users>


You can use google chart api to display charts. You just need to give paramiters in the url and use that url in image source. Refer this

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜