Does tooltipText work on pie charts? I can't get either option value to work.

171 views
Skip to first unread message

w1ntermut3

unread,
Jul 27, 2011, 11:02:42 AM7/27/11
to Google Visualization API
The docs (http://code.google.com/apis/chart/interactive/docs/gallery/
piechart.html#Configuration_Options) mention a "tooltipText" setting,
that can be 'both', 'value' or 'percentage'. Regardless of what value
I use for it, the tooltip displays both a value and a percentage. Am I
setting it correctly?

var options = {
is3D: true,
width: 350,
height: 340,
backgroundColor: '#333',
colors: ['#cc0000','#00cc00','#0000cc',],
chartArea: { left: 0, top: 0, width: 350, height: 340 },
legend: 'none',
pieSliceText: 'label',
tooltipText: 'percentage'
};
var chart = new
google.visualization.PieChart(document.getElementById('poll_results_graph'));
chart.draw(data, options);

asgallant

unread,
Jul 27, 2011, 11:31:07 AM7/27/11
to google-visua...@googlegroups.com
It looks like either tooltipText is broken or the documentation is wrong.

Jinji

unread,
Jul 28, 2011, 11:46:24 AM7/28/11
to google-visua...@googlegroups.com
Oops. Will be fixed.

On Wed, Jul 27, 2011 at 6:31 PM, asgallant <drew_g...@abtassoc.com> wrote:
It looks like either tooltipText is broken or the documentation is wrong.

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

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

bizzynate

unread,
Aug 5, 2011, 4:18:49 PM8/5/11
to Google Visualization API
On this same topic, can an option of 'none' be added to this parameter
which would suppress the display of the tooltip?

Riccardo Govoni ☢

unread,
Aug 5, 2011, 5:49:25 PM8/5/11
to google-visua...@googlegroups.com
Would the 'enableInteractivity': false option work for you? It disable chart interactions (as the name says), including tooltips. If so, you can already use the option right now.

/R.

On 5 August 2011 21:18, bizzynate <bizzynat...@gmail.com> wrote:
On this same topic, can an option of 'none' be added to this parameter
which would suppress the display of the tooltip?
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

JML

unread,
Aug 16, 2011, 4:59:08 PM8/16/11
to Google Visualization API
was this ever fixed?

the code below still doesnt seem to work

chart.draw(data, {
width: 760,
height: 500,
tooltipText: 'percentage',
pieSliceText: 'none',
is3D: true
});

tool tips are still showing both percentage & value


On Jul 28, 11:46 am, Jinji <ji...@google.com> wrote:
> Oops. Will be fixed.
>

Jinji

unread,
Aug 17, 2011, 10:10:28 AM8/17/11
to google-visua...@googlegroups.com
This is indeed a bug, which is already fixed in the release candidate (version '1.1'). Soon to be pushed to all.
Reply all
Reply to author
Forward
0 new messages