A Line chart with an adjustable minimum Y value

[No canvas support]
Minimum Y value:
Maximum Y value:

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="600" height="250">[No canvas support]</canvas><br />
Minimum Y value: <input type="text" id="ymin" value="0" style="font-size: 16pt" /><br />
Maximum Y value: <input type="text" id="ymax" value="10" style="font-size: 16pt" />
This is the code that generates the chart:
    line = new RGraph.Line({
        id: 'cvs',
        data: [5,4,1,6,8,5,3],
        options: {
            xaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
            marginLeft: 55,
            marginRight: 35,
            marginBottom: 35,
            marginTop: 35,
            title: 'A line chart with adjustable Y axis min/max',
            titleBold: true,
            titleSize: 16
    document.getElementById("ymin").onkeyup = function (e)
        line.set('yaxisScaleMin', parseInt(e.target.value));

    document.getElementById("ymax").onkeyup = function (e)
        line.set('yaxisScaleMax', parseInt(e.target.value));