Plotly Pie chart legend not work when I turn off all legend
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Hi team!
I think this is a bug in Plotly.
When I turn off all legends and double-click on a legend after. it seems Legend's double-click event is not working. This error only occurs on pie charts while other chart types work normally.
On Plotly website: [Pie](https://plotly.com/javascript/pie-charts/)
https://github.com/plotly/plotly.js/assets/142469586/4b0532ef-e892-4a14-b3c7-779cd639f810
This function also doesn't work on my project
Expected: If turn off all legends and double-click any legend item, all legends will active
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior in the linked Plotly pie-chart example: disable every legend item, then double-click one item. Compare this with another chart type where the interaction works, and trace the pie-chart legend interaction path. Done means double-clicking any legend item after all are disabled reactivates all legend items, with a regression test covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100