Formerly the SVG HBar did not support Inbar labels but from version 6.01 it does.
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: 900px; height: 300px" id="chart-container"></div> </div>This is the code that generates the chart: