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);