Plotly Pie chart legend not work when I turn off all legend
未关闭
还没有人认领这个 Issue。
bug
P2
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先复现所链接的 Plotly 饼图示例中的行为:禁用每个图例项,然后双击其中一个图例项。将其与交互正常工作的另一种图表类型进行比较,并追踪饼图图例的交互路径。完成标准是:在所有图例项都被禁用后,双击任意图例项都会重新启用所有图例项,并且有一个回归测试覆盖此情况。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100