A demonstration of a Bar chart with an odd number of Y labels - showiing that any number of Y labels is possible.
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:
<canvas id="cvs" width="600" height="250"> [No canvas support] </canvas>This is the code that generates the chart:
<script> new RGraph.Bar({ id: 'cvs', data: [153,164,144,125,188,198,200], options: { xaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'], yaxisLabelsCount: 7, backgroundGridHlinesCount: 7, backgroundGridVlinesCount: 7, yaxisTickmarksCount: 14, yaxisScaleMax: 700, marginLeft: 50, textSize: 16, shadowOffsetx: 2, shadowOffsety: 2, shadowBlur: 2, colorsStroke: 'rgba(0,0,0,0)' } }).draw(); </script>