I am having a hard time making that work. I have put it up here. Do you mind having a look and letting me know what I am doing wrong? http://jsfiddle.net/6cm5c/
Billy On Wed, Oct 24, 2012 at 10:50 AM, asgallant <[email protected]>wrote: > Yes, you can do that. If the URL is in the fifth column, then you would > do it like this: > > var formatter = new google.visualization.**PatternFormat('<a > href="{1}"><img src="{0}" /></a>'); > // replace the '{0}' in the patter with the contents of column 3 (the > links) and the '{1}' with the contents of column 4 and put the result in > column 0 > formatter.format(data, [3, 4], 0); > > The way this works is that the formatter takes the values from the columns > in the array (the second parameter to the format call) and maps them to the > bracketed numbers in the pattern, where the number in the bracket > corresponds to the index in the array (not the index of the column!). In > this case, since 3 is at index 0 in the array, the {0} gets replaced with > the contents of column 3. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
