XML/SWF Charts| CSS/XML Timeline Eons(New)| Timeline Eons| SlickBoard

 < previousnext > 


Chart Data


To create a chart, start by organizing the data in a table like this:

  2006 2007 2008 2009
Region A 5 10 30 63
Region B 100 20 65 55
Region C 56 21 5 90


Then, translate the table into XML elements like this:


         <string>Region A</string>
         <string>Region B</string>   
         <string>Region C</string>


Notice that:

  • The XML elements mimic the table exactly
  • Even though the top left cell is empty, it is included in the XML code as a null for consistency
  • All the row and column titles are strings. All the table values are numbers


Copy the above code, paste it into the sample.xml source file, and preview the sample.html web page in a browser:



 < previousnext > 

Copyright © 2003-2021, maani.us