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

81
Views
Google Visualisation Api dashboard showing specific column values in piecharts

I have a created a dashboard from an sql query it is 90 columns and 500+ rows, I can display it all in a table but now I want to make pie charts displaying specific column data.

For example I have two columns 3 'gender' and 71 'revenue'. I have been trying to get the pie chart to show for each distinct gender and the total revenue generated, but for the life of me can not figure it out.

I am hoping to use the same datatable as the dashboard for filtering to work but have been completely stuck for a while now and couldn't find anything in google documentation, any help is greatly appreciated.

This will let me show each entry with its gender and revenue individually:

       var   genderFund = new google.visualization.ChartWrapper({
            'chartType': 'PieChart',
            'containerId': 'chart_div',
            'options': {
                'width': 300,
                'height': 300,
                'pieSliceText': 'value',
            },
            'view': {'columns': [3, 71]}
                     // is it possible to group distinct columns
        });
about 4 years ago · Juan Pablo Isaza
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!