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.
There's also a canvas version of this chart available.
<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.common.key.js"></script> <script src="RGraph.svg.hbar.js"></script>Put this where you want the chart to show up:
<div style="padding: 15px"> <div style="width: 950px; height: 500px" id="chart-container"></div> </div>This is the code that generates the chart: