Re: gviz_api_lib Role Attribute

11 views
Skip to first unread message

asgallant

unread,
Sep 3, 2012, 8:41:16 PM9/3/12
to google-visua...@googlegroups.com
I believe the Python library predates column roles, so there probably isn't any explicit support for them, but if I recall correctly, you can specify a column's role in the custom properties of the column, so I would hazard a guess that you set it in the custom_properties part of the column description in the table schema set up.

On Monday, September 3, 2012 7:33:32 AM UTC-4, Tony Hirst wrote:
Any ideas how I use the Python gviz_api_lib ( https://developers.google.com/chart/interactive/docs/dev/gviz_api_lib ) to create a datatable that contains custom values for role attributes as used to provide custom tooltips in a scatterplot ( https://developers.google.com/chart/interactive/docs/roles?hl=de-DE#tooltiprole )

tony

asgallant

unread,
Sep 3, 2012, 8:43:38 PM9/3/12
to google-visua...@googlegroups.com
If, perchance, that doesn't work, you should be able to set the role manually after the data is fetched, using the DataTable's #setColumnProperty method.
Reply all
Reply to author
Forward
0 new messages