plotly / plotly/plotly.js

Small sectors in pie chart render incorrectly (Chrome / Linux)

Open
#4,717 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If a pie chart has a sector that is vanishingly small, the sector may be rendered with a completely incorrect position and size (not even concentric to the rest of the plot).

This seems to occur only on Chrome and Chromium (tested on versions 80.0.3987.149 and 80.0.3987.87, respectively). I'm running Linux (KDE Neon, which is Ubuntu-based), and could not reproduce this on Windows using Chrome or Firefox.

Demo

Expected result (shown here with Firefox):
firefox

Actual result when viewed in Chrome or Chromium on Linux:
chrome

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

Start with the linked jsfiddle demo and reproduce the pie-chart rendering difference in Chrome or Chromium on Linux, comparing it with Firefox. Trace the pie-chart rendering path from the reproduction; done means vanishingly small sectors have the correct position and size and remain concentric with the rest of the plot.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.