An example how to use images as labels
Since the advent of the
RGraph.text2() function which saves the
coordinates of the text you have been able to use those coordinates to place
an image. You could even use the coordinates of the bar itself if you wished.
You might find that using images (eg faces) may make your charts more instantly recognisable.This goes in the documents header:
<script src="RGraph.common.core.js"></script> <script src="RGraph.drawing.image.js"></script> <script src="RGraph.bar.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="500" height="350" style="float: right"> [No canvas support] </canvas>This is the code that generates the chart: