A Gauge chart using the labelsValue option
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="250" height="250">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.Gauge({
id: 'cvs',
min: 0,
max: 10,
value: 5.2,
options: {
labelsValue: true,
labelsValueDecimals: 1,
labelsValueBounding: false,
labelsValueYPos: 0.65,
labelsValueUnitsPost: '%',
labelsValueSize: 14,
labelsValueBold: true,
labelsValueItalic: true,
labelsValueBounding: true,
labelsValueBoundingFill: '#eee',
labelsValueBoundingStroke: '#ccc',
colorsRedWidth: 15,
colorsYellowWidth: 15
}
}).grow();
</script>