Adjusting your charts interactively - HBar chart

Recommend RGraph:  
    Read comments... [No canvas support]

Adjusting the Horizontal Bar chart is new in August 2016 and, like other charts, can be used to adjust the values represented by the chart. These events are available for you to use:


<script>
    new RGraph.HBar({
        id: 'cvs',
        data: [4,8,6,3,5,2,6],
        options: {
            adjustable: true,
            labels: ['Richard','Ben','Larry','Pete','Luis','John']
        }
    }).draw().on('onadjustbegin', function (obj)
    {
        // ...
    }).on('onadjust', function (obj)
    {
        // ...
    }).on('onadjustend', function (obj)
    {
        // ...
    });
</script>

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.

Comments