Allow showlegend for 3d Surface plots
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
For Surface plots it is currently not possible to show the legend.
If layout.itemclick and layout.doubleclick would default to a radio-button-like behavior (see #6617 ) for Surface plots, the legend would be very useful.
For use-case see my antenna-plot at
https://blog.runtux.com/content/2022/12-el-1deg-plot3d.html
source at https://github.com/schlatterbeck/plot-antenna
This currently uses a workaround: It adds another Scatter plot and ties the legend items of the Surface plot to the legend items of the Scatter plot using legendgroup. Then we can make the legend visible.
Not allowing showlegend with Surface plots seems an arbitrary restriction.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先追踪 Surface 图表如何处理 showlegend,以及如何定义 layout.itemclick 和 layout.doubleclick,并使用 issue #6617 了解提议的类似单选按钮的行为。将当前的 Surface 行为与使用 legendgroup 的 Scatter 变通方案进行比较。当 Surface 图例项可以显示,并且能够对预期的点击行为做出一致响应时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100