This is an example of a basic Horizontal Bar chart that's grouped. It also uses the marginInnerTop
and marginInnerBottom
options so the bars and the tickmarks have a vertical margin.
<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.bar.js"></script>Put this where you want the chart to show up:
<div style="padding: 15px"> <div style="width: 350px; height: 500px" id="chart-container"></div> </div>This is the code that generates the chart: