plotly / plotly/plotly.js

.textline remains when window size gets large

Open
#4,979 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, thank you for the great library.

I use the pie chart with responsive: true for the graph configuration, and I've noticed that when the window size gets small, the label would be shown outside of the arc with .textline lines:
1

And then the window size gets large again, .textline lines remains even when they are not necessary anymore:
2

I think it is not an intended thing which '.textline' lines are remaining.

It can be reproduced on this codepen with resizing the preview window.

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 CodePen and reproduce the pie-chart behavior by resizing its responsive preview window. Trace how the .textline labels are created and updated during resize; done means lines shown at a small size are removed when the window grows and they are no longer needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.