Disappearing text and the RGraph.Text function

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 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
}


PS Could you link to the RGraph website - thanks.

Richard, RGraph Support

Add a reply




« Back to message list