Adjusting charts: Horseshoe meter

Summary: Information about adjusting the Horseshoe meter interactively. It can be used to highlight values or control something via a webpage.

[No canvas support]

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





<script>
    horseshoe = new RGraph.Horseshoe({
        id: 'cvs',
        min: 0,
        max: 100,
        value: 78,
        options: {
            adjustable: true,
            textAccessible: false
        }
    }).draw().on('adjustbegin', function (obj)
    {
        console.log('The adjustbegin event has fired. Value: ' + obj.value.toFixed(2));
    }).on('adjust', function (obj)
    {
        console.log('The adjust event has fired. Value: ' + obj.value.toFixed(2));
    }).on('adjustend', function (obj)
    {
        console.log('The adjustend event has fired. Value: ' + obj.value.toFixed(2));
    });
</script>

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.