A Horizontal Bar chart showing custom ingraph labels (canvas version)

This is a canvas version of the SVG demo which shows the same chart . This chart shows how you can use a little bit of extra coding in order to add your own custom ingraph labels. Normally the labelsAbove option on a stacked chart will show a single summation of the values for each bar. This on the other hand shows a label for each bar. Some of the values in the data are null for which no label is shown.

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.key.js"></script>
<script src="RGraph.hbar.js"></script>
Put this where you want the chart to show up:
<canvas width="950" height="500" id="cvs"></canvas>
This is the code that generates the chart: