Adjusting your charts interactively - Meter chart

Share RGraph:   Share or Like RGraph on Facebook!
[No canvas support]

The Meter chart has the facility to be adjusted. There are three custom RGraph events associated with it:

    window.onload = (function ()
        var meter = new RGraph.Meter({
            id: 'cvs',
            min: 0,
            max: 100,
            value: 78,
            options: {
                adjustable: true
        }).draw().on('onadjustbegin', function (obj)
            // ...
        }).on('onadjust', function (obj)
            // ...
        }).on('onadjustend', function (obj)
            // ...

The RGraph adjusting events

There are three RGraph events associated with adjusting. The onadjustbegin event fires when adjusting begins. Much like the onmousedown event. The onadjust event fires during adjusting, much like the onmousemove event. The onadjustend event fires when adjusting is finished, much like the onmouseup event.

© Copyright Richard Heyes 2008-2017