A simple SVG Bar chart

An SVG Bar chart of the earnings of Britain's highest-paid boss. As you can see there's quite a jump up to 469m. A good year!

View the bare-bones, stripped-down version of this demo

She founded Bet365 - an online gambling firm. Who would have guessed that gambling could be so profitable?! Ok perhaps everyone in the world! Personally though, if a company that I started earned just (?) five million pounds - I'd retire!

The chart itself is quite straightforward with a single solid color for the bars, a small marginInner setting and large text. Being like this though makes the clarity of the chart quite good.

It also uses the labelsAbove setting to show the exact figures that the bars represent.

For smaller screens, the CSS float is removed from the SVG tag and the size of the text on the chart is reduced.

This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.bar.js"></script>
Put this where you want the chart to show up:
<div style="padding: 15px">
    <div style="width: 900px; height: 350px" id="chart-container"></div>
This is the code that generates the chart - it should be placed AFTER the <div> tag: