Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove The Percentage From Google Pie Chart Tooltip

How To Remove The Percentage From Google Charts Tooltip

For Example i want remove 33.33% from this tooltip only show the value i want remove 33.33% from this tooltip only show the value

like image 837
arun Avatar asked Jan 30 '14 09:01

arun


People also ask

How do you show a value instead of a percent in a pie chart?

To display percentage values as labels on a pie chart On the design surface, right-click on the pie and select Show Data Labels. The data labels should appear within each slice on the pie chart.


1 Answers

Set tooltip.text to value. See gogle docs pie chart. For example:

    var options = {
        'title':  'Pie chart title',
        'width':  800,
        'height': 600,
        'is3D':   false,
        tooltip: {
            text: 'value'
        }
    };
like image 82
Anto Jurković Avatar answered Oct 30 '22 22:10

Anto Jurković