Adjusting charts: Activity meter
The Activity meter has the facility to be adjusted. There are three custom RGraph events associated with it:
adjustbegin
adjust
adjustend
See below for an example of using these events.
<script> adjusting = new RGraph.Activity ({ id: 'cvs', min: 0, max: 100, value: [23,45,55], options: { adjustable: true } }).draw().on('adjustbegin', function (obj) { // ... }).on('adjust', function (obj) { // ... }).on('adjustend', function (obj) { // ... }); </script>
The 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.