A basic 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="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: 3.29,
options: {
labelsValueText: true,
labelsValueTextDecimals: 2,
labelsValueTextBounding: false,
labelsValueTextYPos: 0.4,
labelsValueTextUnitsPost: '%',
labelsValueTextSize: 20,
textSize: 18,
colorsGreenColor: '#afa',
colorsGreenWidth: 15,
colorsRedWidth: 15,
colorsYellowWidth: 15,
labelsCentered: true,
labelsOffsetAngle: 0,
labelsOffsetRadius: 25,
labelsOffsetx: 0,
labelsOffsety: 0
}
}).draw();
</script>