A horizontal bar chart showing Chrome speeds
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.hbar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="350" height="176">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.HBar({
id: 'cvs',
data: [215, 175],
options: {
yaxisLabels: ['Chrome 18', 'Chrome 19'],
colors: ['#3266CC'],
title: 'SunSpider score',
xaxisTitle: 'milliseconds (less is better)',
xaxisTitleY: 155,
backgroundGridHlines: false,
backgroundGridBorder: false,
backgroundGridVlinesCount: 4,
marginBottom: 55,
vmargin: 8,
marginTop: 35,
marginLeft: 85,
tooltips: ['Chrome 18','Chrome 19
Learn more...']
}
}).draw();
</script>