An inverted offset X axis Line chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.line.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="650" height="400">[No canvas support]</canvas>
This is the code that generates the chart:
<script>
new RGraph.Line({
id: 'cvs',
data: [-10,-24,51,65,68,99],
options: {
marginLeft: 85,
marginTop: 45,
outofbounds: true,
linewidth: 3,
colors: ['red'],
yaxisScaleMax: 150,
yaxisScaleInvert: true,
tickmarksStyle: null,
yaxisScaleMin: -50,
backgroundGridHlinesCount: 4,
yaxisLabelsCount: 4,
yaxisTickmarksCount: 4,
yaxisScaleUnitsPost: 'k ',
marginInner: 15,
spline: true
}
}).draw();
</script>