Use the DataTable#setColumnProperty method to set the "role" property to 
"tooltip"/"annotation"/"annotationText" (whichever is most appropriate).

On Friday, September 7, 2012 12:16:41 PM UTC-4, robkilman wrote:
>
> I am creating a dynamic line chart from data generated in Google 
> Form/Google Spreadsheet using the query language (similar to this example: 
> http://code.google.com/apis/ajax/playground/?type=visualization#using_the_query_language).
>  
>  
>
> It works great, but I would like to have data from another column appear 
> in the tooltip or as annotations.  I know this is easy to do with roles if 
> your data is hard coded, as seen here: 
> https://developers.google.com/chart/interactive/docs/roles, but can't 
> find out how to do using an external data set.  
>
> Or, to put it another way, how do I assign roles to columns in Google 
> Spreadsheets to be used for visualizations using the query language?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/HXOxf80cR_oJ.
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.

Reply via email to