PieCharts don't support custom tooltips, sorry. You can set the formatted
values of your data points, which will change the value shown (ie, replace
the 30 with "label1"), but that's all you can do.
On Wednesday, December 12, 2012 9:17:22 AM UTC-5, Lorenz Schwarz wrote:
>
> Hi everybody
>
> Maybe a newbie question:
>
> According to the how tos it's possible to customize the tooltips.
> I have the following script (I left out beginning end ending)
>
>
> Create the data table.
> var data = new google.visualization.DataTable();
> data.addColumn('string', 'Labels');
> data.addColumn('number', 'Slices');
> data.addColumn({type: 'string', role: 'tooltip'});
> data.addRows([
> ['Planning and Support',30,'label1'],
> ['Advisory and Educational',50,'label2'],
> ['Non-Educational',20,'label3']]);
>
> // Set chart options
> var options = {'title':'Extension Activities',
> 'width':400,
> 'height':200
> };
> However, I still get the standard tooltips. I cleared caches, switched
> browsers etc.
>
> What am I missing?
>
> :-)
> Lorenz
>
>
--
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/-/Nwjo1IHUFU4J.
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.