My image is not being dynamically redrawn

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 Othmar on 6th January 2017
Hi Richard

I want to redraw a image dynamically. But the image will be not redrawn. I also have checked this post: www.rgraph.net/forum/message.html/r-graph-showing-old-image-20131011063509.html
But if i use this i got an error: TypeError: RGraph.ClearAnnotations is not a function

Here is a little fiddle: jsfiddle.net/jxm1e3hc/1/

What do i wrong?

Thank you
Othmar
Posted by Richard on 6th January 2017
Hi there,

Try this:

www.rgraph.net/fiddle/view.html/a-drawing-api-image-example

It might miss the odd update if the new image hasn't loaded by the time the chart is redrawn

It didn't work because you were changing the source of the RGraph image object, and that doesn't automatically change the HTML image object.


Richard

Add a reply




« Back to message list