Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

85
Views
Looking to remove the value of google pie chart on hover
var data = new google.visualization.DataTable();
    data.addColumn('string', 'Topping');
    data.addColumn('number', 'Slices');
    data.addRows([
      ['Male', 51],
      ['Female', 49],
    ]);

    // Set options for Sarah's pie chart.
    var options = {title:"",
                   width:600,
                   height:400,
                   is3D: true};

Above is my code. I'm looking to remove the value on the hover but keep the percentages in the pie chart. So on my chart it says Male: 51(51%) Female: 49(49%). It won't let me attach a picture since I'm fairly new so I apologize for that as well.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Just add one more configuration tooltip in options object:

var options = {
    title:"",
    width:600,
    height:400,
    tooltip: {
        text: 'percentage'
    },
    is3D: true
};

Here is demo : https://jsfiddle.net/fs6tc5nq/1/

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!