This is an example of using two Horizontal Bar charts on the same SVG tag in order to achieve a bar-in-bar effect. The second, yellow Horizontal Bar chart - the one that is on top - has a large marginInner
setting so that the bars sit "inside" those of the Horizontal Bar chart underneath.
<script src="RGraph.svg.common.core.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: 500px; height: 300px" id="chart-container"></div> </div>This is the code that generates the chart: