A Bar/Line chart using a negative horizontal margin
This is a demo of a combined (grouped) Bar and Line chart where the
setting on the Bar chart has been set to
-15, This gives the appearance of the bars
overlapping each other slightly.
It has dual Y axes by utilising the drawing API Y axis and the colors have been specifically set to what they are in order to link the bars and lines together.
The Lines also have slightly larger than normal tickmarks for a nicer aesthetic and the whole chart uses slightly-larger-than-the-default text.
This goes in the documents header:
<script src="RGraph.common.core.js"></script> <script src="RGraph.bar.js"></script> <script src="RGraph.line.js"></script> <script src="RGraph.drawing.yaxis.js"></script>Put this where you want the chart to show up:
<div style="padding: 15px"> <canvas id="cvs" width="750" height="500">[No canvas support]</canvas> </div>This is the code that generates the chart: