This is an example of a Horizontal Bar chart where the Bars have both a positive and a negative side to them. It's done by using two Horizontal Bar charts - both of which are using the same SVG tag. You should note as well that whereas normally there's a positive and a negative side to the scale - here both sides of the scale are positive. This is achieved using the xaxisFormatter
option
<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: 850px; height: 500px" id="chart-container"></div> </div>This is the code that generates the chart: