How to export RGraph into excel

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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
www.rgraph.net
If RGraph has helped you - please share the website - thanks!

RGraph Priority Support: www.rgraph.net/support#priority-support

Add a reply




« Back to message list