How can I export RGraph charts into an excel spreadsheet?

« 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 Pratibha on 1st January 2016
can we achieve graph export into excel using javascript or any client side coding
Posted by Richard on 25th April 2014
Hi there,

You can save the canvas as an image:

Or you can save the canvas on to your server with jQuery:

Or alternatively Firefox has a context menu option to save the canvas as an image. If you go down that route you'll need to clear the background color to white first - otherwise it will end up being black. You can do that with:

obj.on('beforedraw', function (obj)
     RGraph.clear(obj.canvas, 'white');


Add a reply

« Back to message list