Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7158559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:05:12+00:00 2026-05-28T13:05:12+00:00

When working with the pie chart in Google Charts it seems to ignore items

  • 0

When working with the pie chart in Google Charts it seems to ignore items with a value of zero. I would really like to get these items to show up in the legend even though their value is zero so that the users knows that it was a possible answer to the question. Is there a way to have a zero value item still show up in the legend?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:05:13+00:00Added an answer on May 28, 2026 at 1:05 pm

    Setting the slice visibility threshold to 0 solved it for me. Notice the last option sliceVisibilityThreshold.

    var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
    chart.draw(data, {
        title:'How Much Pizza I Ate Last Night',
        width:400,
        height:300,
        sliceVisibilityThreshold:0
    });
    

    (taken from the sample pie chart).

    By default, the threshold is set to 1/720, which means (from the docs):

    The slice relative part, below which a slice will not show individually. All slices that
    have not passed this threshold will be combined to a single slice, whose size is the sum
    of all their sizes. Default is not to show individually any slice which is smaller than
    half a degree.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project which includes generating pie and bar graph charts on
i need to make charts (pie and bar) and working with php data. the
I'm writing a Silverlight application that is showing a pie chart of completed items
Currently I am working on report with a floating pie chart as one of
I would like to know how to add itemmouseup listener of an chart's series
I working on HTML Canvas library to construct a PIE Chart Now to finish
I have a decent working web application (Java/Servlet/Jsp) that I would like to improve
I am working with a WebGrid, and I would like to have an image
I have got the resize thing working but when i use the pie chart
I'm working with the ASP.NET Charting Library and I've got it generating a pie

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.