Share RGraph on Facebook Share RGraph on Twitter

A basic Bar chart

[No canvas support]

An example of a straight-forward Bar chart. It has the axes turned off, the default margin sizes have been altered and uses units on the Y axis labels. Otherwise it's pretty unremarkable except for the fact that two of the labels are multi-line. This is accomplished by using carriage returns in the text like this: Monday\n(yuck!)


This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.bar.js"></script>
Put this where you want the chart to show up:
<div style="padding: 15PX">
    <canvas id="cvs" width="750" height="250">[No canvas support]</canvas>
</div>
This is the code that generates the chart: