A Horizontal Bar chart with a large left margin setting. With Horizontal Bar charts the left margin setting is auto-sized by default to make sufficient room for the labels. The chart is animated using the grow()
effect and the labelsAbove
option is enabled.
<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: 750px; height: 500px" id="chart-container"></div> </div>This is the code that generates the chart: