Click here to Skip to main content
15,896,557 members
Articles / Web Development / CSS

Charts using XML and LINQ

Rate me:
Please Sign up or sign in to vote.
4.17/5 (7 votes)
8 Mar 2009CPOL2 min read 49.6K   1.3K   54  
Display data to a chart using LINQ and XML.
<?xml version="1.0" encoding="utf-8"?>
<JSChart>
  <dataset type="bar">
    <data unit="Jan" value="100" />
    <data unit="Feb" value="250" />
    <data unit="Mar" value="300" />
    <data unit="Apr" value="325" />
    <data unit="May" value="400" />
    <data unit="Jun" value="500" />
    <data unit="Jul" value="600" />
    <data unit="Aug" value="750" />
    <data unit="Sept" value="800" />
    <data unit="Oct" value="500" />
    <data unit="Nov" value="400" />
    <data unit="Dec" value="900" />
  </dataset>
</JSChart>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer self employed
United Kingdom United Kingdom
I'm a web developer based in the North West of England. I use c#/ASP.Net to developer my work

Comments and Discussions