You need to either input the data as hyperlinks or format the data as 
hyperlinks, eg:

var data = google.visualization.arrayToDataTable([
    ['Name', 'Height', 'Smokes'],
    ['<a href="http://www.google.com/'>Google</a>', 174, true],
    //...
]);

or:

var format = new google.visualization.PatternFormat('<a 
href="{0}">{0}</a>');
formatter.format(data, [0]);

You also need to set the table's "allowHtml" option to true.

On Tuesday, August 13, 2013 5:00:49 AM UTC-4, Todd Lee wrote:
>
> I'm trying to uses this code for a table which suits my needs.  Except I 
> can't figure out how to make the first column's 'Name' data (names of 
> people) hyper linked to other webpages.
> Thank you in advanced for your support 
>
>
> <html xmlns="http://www.w3.org/1999/xhtml";>
>   <head>
>     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
>     <title>
>       Google Visualization API Sample
>     </title>
>     <script type="text/javascript" src="http://www.google.com/jsapi";></
> script>
>     <script type="text/javascript">
>       google.load('visualization', '1', {packages: ['table']});
>     </script>
>     <script type="text/javascript">
>     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]
>       ]);
>

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


Reply via email to