How to export RGraph into excel

Share RGraph:   Share or Like RGraph on Facebook!

« 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 25th April 2014
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:

www.rgraph.net/docs/retrieving-a-png-of-your-charts.html

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

www.rgraph.net/docs/integration-with-server-side-scripting.html#image


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');
});



Richard

Add a reply




« Back to message list