A blue Bar chart that has an offset X axis but also has both of the axes and the background grid turned off. It has a title, subtitle, labelsAbove labels and is using the wave animation effect. The font size of the the text is a little bit smaller than usual too.
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: 650px; height: 300px" id="cc"></div>
</div>
This is the code that generates the chart:
<script>
var data = [[45,56],[75,32],[39,47],[34,48],[46,47],[48,52]];
new RGraph.SVG.Bar({
id: 'cc',
data: data,
options: {
grouping: 'grouped',
colors: [
'Gradient(white:#ccf:#ccf:#ccf:#ccf)',
'Gradient(white:#faa:#faa:#faa:#faa)'
],
backgroundGridVlines: false,
backgroundGridBorder: false,
textColor: 'white',
xaxisLabels: ['2007','2008','2009','2011','2012','2013'],
textSize: 16,
gutterLeft: 35,
gutterBottom: 35,
gutterTop: 15,
gutterRight: 5
}
}).wave();
</script>