Adjusting charts: Vertical Progress bar

[No canvas support]

Nothing pertinent is kept in the registry. If you wish to get the new value of the progress you can check the obj.value property. If you want the value before the adjustment, you can check the value with the adjustbegin event (instead of the adjustend event).

The RGraph adjusting events

There are three RGraph events associated with adjusting. The adjustbegin event fires when adjusting begins, much like the mousedown event. The adjust event fires during adjusting, much like the mousemove event. The adjustend event fires when adjusting is finished, much like the mouseup event.

Some examples of using the three events. Each gets the shape information (ie the applicable bar) from the RGraph registry.

    textarea = document.getElementById("output");

    vprogress = new RGraph.VProgress({
        id: 'cvs',
        min: 0,
        max: 100,
        value: 83,
        options: {
            textAccessible: false,
            colors: ['red'],
            adjustable: true,
            marginInner: 15,
            tickmarksInner: true,
            labelInner: true,
            scaleUnitsPost: '%',
            marginRight: 55
    }).draw().on('adjustbegin', function (obj)
        textarea.value += 'Value before adjustment: ' + obj.value + '\n';
    }).on('adjust', function (obj)
        textarea.value += 'Value during adjustment: ' + obj.value + '\n';
    }).on('adjustend', function (obj)
        textarea.value += 'Value after adjustment: ' + obj.value + '\n';