Please remember to link to the RGraph website and give your feedback here. Thanks!
RGraph has a various different ways of adding events and interactivity to your charts. As such this is a summary of the different documentation pages that are available:
These are similar to the above but are set in the same way as other RGraph properties.
obj.Set('chart.events.click', function (e, shape) {});
obj.Set('chart.events.mousemove', function (e, shape) {});
Go to the Pseudo-standard events docs page »
This is an older HOWTO document that has useful information about making use of the Pseudo-standard events.
This is a document detailing the new $ syntax for adding events to specific shapes on your chart. The dollar syntax makes adding events much easier than previously.
Read about the dollar syntax »
Adding your event listener functions using the DOM1 style is much easier than the DOM2 style. This page details how you can do this:
myBar.ondraw = function (obj)
{
}
The docs page detailing all of the DOM2 style custom RGraph events. These events can also be used in a DOM1 style - for example:
myObj.ondraw = function (obj)
{
}
OR
myFunc = function (obj)
{
}
RGraph.AddCustomEventListener(myObj, 'ondraw', myFunc);
This is the docs page that describes the pseudo-standard dollar syntax that is available with RGraph. The dollar syntax make it much easier to add events to specific bar/points/segments etc.
myObj.$2.onclick = function (e, shape)
{
}
myObj.$2.onmousemove = function (e, shape)
{
}
Go to the pseudo standard events dollar syntax docs page»
© Copyright RGraph licensing 2008-2013 All rights reserved. Privacy policy, Terms and conditions