Adjusting your charts interactively - Line chart

Share RGraph:   Share or Like RGraph on Facebook!
Update If you don't like the line being drawn outside of the chart area (ie in the gutter where the title or the labels are) you can use the new (in February 2016) outofboundsClip option
[No canvas support]

The Line chart can be adjusted by dragging the line(s) up and down. When you click on a line to adjust it (and hold the mousebutton down) you can then retrieve the relevant details of that point from the registry:

    window.onload = (function ()
        var line = new RGraph.Line({
            id: 'cvs',
            data: [
            options: {
                labels: ['Kev','Matt','Rich','Dave','Iggy','Polly','Fiona','Fred','Pete','Lou','Fred','Bob'],
                ylabelsInside: true,
                linewidth: 2,
                hmargin: 10,
                shadow: false,
                adjustable: true,
                title: 'An adjustable line chart',
                outofbounds: true,
                spline: true,
                textAccessible: true
© Copyright Richard Heyes 2008-2017