Set the Table's "allowHtml" option to true.
On Wednesday, August 21, 2013 11:14:15 AM UTC-4, Colm McLaughlin wrote:
>
> Hi,
> I'm using a snippet of code provided by Google charts. Its as follows:
>
> function drawVisualization() {
> // Create and populate the data table.
> var data = google.visualization.arrayToDataTable([
> ['Name', 'Height', 'Smokes'],
> ['Tong Ning mu', 174, true],
> ['Huang Ang fa', 523, false],
> ['Teng nu', 86, true]
> ]);
>
> // Create and draw the visualization.
> visualization = new google.visualization.Table(document.getElementById(
> 'table'));
> visualization.draw(data, null);
> }
>
> This displays a table.
> However I want to Have each name eg: "Tong Ning mu" as a link to a page
> that is about them.
> I cant seem to escape the <a href tags. They just appear as a string in
> the table.
> Is there a way around this?
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.