Disappearing text and the RGraph.Text function

« 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 Mark on 4th January 2013
I'm sure I'm missing something very obvious here in which case sorry, but when I use RGraph.Text() as outlined in

www.rgraph.net/canvas/docs/api.html#text [please note missing quote after text = 'Some text!;]



I find that the text appears just fine but if I click on the canvas it disappears, requiring a page reload. Any help appreciated.
Posted by RGraph support on 4th January 2013

To make sure the text is r-applied when the canvas i redrawn you can use the ondraw event:

myObj.ondraw = function (obj)
     // Draw the text here


Add a reply

« Back to message list