How to put link tag in title for the ColumnChart ?

17 views
Skip to first unread message

suresh babu

unread,
Aug 11, 2011, 10:56:57 AM8/11/11
to Google Visualization API
Hi,

I am using ColumnChart in my GWT project, when I try to
add a link tag in the title just like below code:

private Options createOptions() {
Options options = Options.create();
// I want add link tag in the title.
options.setTitle("<a href=\"link\"></a> mytitle");
return options;
}


Title is show as " <a href="link"></a> mytitle" in ColumnChart graph,
but I need it as a link to refer another page.

Any help or guidance in this matter would be appreciated.

Regards
Suresh Babu G

asgallant

unread,
Aug 11, 2011, 11:44:16 AM8/11/11
to google-visua...@googlegroups.com
AFAIK this isn't supported in the API.  I can't think of any means off the top of my head to hack around it.  The closest I've come is to create your own title (outside the chart div), make that a link, and set the chart's titlePosition option to "none".
Reply all
Reply to author
Forward
0 new messages