Click here to Skip to main content
15,881,600 members
Articles / Programming Languages / XSLT

Digits to Charts

Rate me:
Please Sign up or sign in to vote.
4.77/5 (21 votes)
9 Jun 20063 min read 78.2K   879   60  
This article presents several XSLT stylesheets for converting XML numerical data to eye-candy HTML bar charts.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="all-in-one.xsl"?>

<root>

<data date="2006-01-01">
<a>-1.5</a>
<b>2.5</b>
</data>

<data date="2006-01-02">
<a>-1.0</a>
<b>2.0</b>
</data>

<data date="2006-01-03">
<a>-0.5</a>
<b>1.7</b>
</data>

<data date="2006-01-04">
<a>0</a>
<b>1.5</b>
</data>

<data date="2006-01-05">
<a>0.5</a>
<b>1.4</b>
</data>

<data date="2006-01-06">
<a>1.0</a>
<b>1.35</b>
</data>

<data date="2006-01-07">
<a>1.5</a>
<b>1.3</b>
</data>

</root>

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer Freelance software engineer
Russian Federation Russian Federation
Dmitry Khudorozhkov began programming (and gaming) with his ZX Spectrum in 1989. Having seen and used all IBM PCs from early XT to the latest x64 machines, now Dmitry is a freelance programmer, living in Moscow, Russia. He is a graduate of the Moscow State Institute of Electronics and Mathematics (Applied Mathematics).

He is proficient in:

- C/C++ - more that 9 years of experience. Pure Win32 API/MFC desktop programming, networking (BSD/Win sockets), databases (primarily SQLite), OpenGL;

- JavaScript - more that 6 years of experience. Client-side components, AJAX, jQuery installation and customization;

- Firefox extensions (immediatelly ready for addons.mozilla.org reviewing) and Greasemonkey scripts. As an example of extensions Dmitry made you can search for FoxyPrices or WhatBird Winged Toolbar;

- XML and it's applications (last 2 years): XSLT (+ XPath), XSD, SVG, VML;

- ASP.NET/C# (webservices mostly);

Also familiar with (= entry level):

- PHP;

- HTML/CSS slicing.

Trying to learn:

- Ruby/Ruby-on-Rails;

- Czech language.

If you wish to express your opinion, ask a question or report a bug, feel free to e-mail:dmitrykhudorozhkov@yahoo.com. Job offers are warmly welcome.

If you wish to donate - and, by doing so, support further development - you can send Dmitry a bonus through the Rentacoder.com service (registration is free, Paypal is supported). Russian users can donate to the Yandex.Money account 41001132298694.

-

Comments and Discussions