Drawing API text object link option

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 RGraph support on 25th November 2013
Hi there,

A few new options have been added to the drawing API text object that allow you to more easily turn the text into a link. For example:

var text = new RGraph.Drawing.Text('cvs', 25,25,'Read more...')
     .Set('font', 'Arial bold italic')
     .Set('size', 10)
     .Set('halign', 'right')
     .Set('valign', 'bottom')
     .Set('colors', ['blue'])
     .Set('link', 'www.google.com')
     //.Set('link.target', '_blank')
     //.Set('link.options', 'width=400,height=400,top=200,left=200')
     .Draw();

The link is triggered using window.open() so the options are the same as they are for that function.



Richard

Add a reply




« Back to message list