Disappearing text and the RGraph.Text function

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 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/docs/api.html#text [please note missing quote after text = 'Some text!;]

and

www.rgraph.net/docs/misc.html#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
Hi,

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
}


Richard

Add a reply




« Back to message list