plotly / plotly/plotly.js

An option to hide 0% text on pie charts

Open
#452 10 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

community feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Please look at this example:

image

Here, the two 0% texts make no sense. It's getting even worse if there are many options. They just get stacked vertically and take a lot of space and look ugly.

An option to switch off showing zero-percent texts on pie charts would be very hepful.

Please note it's not the same as toggling pie slices when clicking on legend items, in which a case the opacity of those hidden legend items become 0.5 instead of 1 (default).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named in the issue. Start by locating the pie-chart text rendering and existing chart options, then verify that a new option can suppress only 0% labels while preserving other labels and remaining distinct from legend-item toggling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.