Drag and drop for Pie chart


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Siva on 22nd January 2014
Hi,

I have been using RGraph for the past few days and it is working nice. I am working on Pie Charts now. Is it possible to drag a piece of pie from one canvas and put into another canvas just like this example www.rgraph.net/blog/2013/january/an-example-of-html5-canvas-drag-n-drop.html

Also can we attach mouse move event on a pie chart ? I have been using onclick event on pie chart. Is it possible to have mouse move ?
Posted by Richard on 22nd January 2014
Hi there,

1. No you can't do this - or rather - it's not a built in feature.
2. You can add a mousemove event like this:

www.rgraph.net/tests/pie-dollar-syntax.html



Richard, RGraph Support
www.rgraph.net
Please link to the RGraph website
Posted by Siva on 22nd January 2014
Hi,

Many thanks for your reply. Instead of click can I attach a mouseup or mousedown event on pie ?
Posted by Richard on 22nd January 2014
Hi there,

Yes - but not using the dollar syntax. I've modified the example and now the second Pie chart has a mouseup event listener:

www.rgraph.net/tests/pie-dollar-syntax.html





Richard, RGraph Support
www.rgraph.net
Please link to the RGraph website
Posted by Siva on 22nd January 2014
That is awesome ! Many thanks :) You rock :)

Add a reply

 




« Back to message list
RGraph on social media