A customised Gauge chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.gauge.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="300" height="300">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.Gauge({
id: 'cvs',
min: 0,
max: 200,
value: [184,12],
options: {
titleTop: 'Air Speed',
titleTopSize: 22,
titleTopFont: 'Impact',
titleTopColor: 'white',
titleTopSize: 24,
titleTopItalic: true,
titleBottom: 'Knots',
titleBottomSize: 14,
titleBottomItalic: true,
titleBottomFont: 'Impact',
titleBottomColor: '#ccc',
titleBottomPos: 0.4,
colorsRanges: [[160,200,'rgba(255,0,0,1)'], [120,160,'rgba(255,255,0,0.95']],
backgroundColor: 'black',
backgroundGradient: true,
centerpinColor: '#666',
needleSize: [null, 50],
needleColors: ['Gradient(transparent:white:white:white:white:white)', 'Gradient(transparent:#d66:#d66:#d66:#d66)'],
textColor: 'white',
tickmarksLargeColor: 'white',
tickmarksMediumColor: 'white',
tickmarksSmallColor: 'white',
borderOuter: '#666',
borderInner: '#333'
}
}).draw();
</script>