Save chart as PNG on server AFTER drawing effect ends


« 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 Carlos on 6th May 2014
Hi im using this guide

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

Sadly my graphs have a drawing effect, like .RoundRobin, .Wave and Trace
so the problem is the $post variable is sending before the current effect ends
and the result of this request is an empty grid saved as png in the directory

is there any function like onLoad or "WaitTillTheGraphIsFullyDrawn" so i can send it to save?
Hope you can help me

Thanks!

Posted by Richard on 6th May 2014
Hi

You could use the callback function (which runs when the effect is complete:



function myCallback ()
{
}

obj.roundRobin({frames: 60}, myCallback)

Add a reply

 




« Back to message list
RGraph on social media