Inconsistent behavior when providing an array of marker sizes in "markers" mode on scatter3D
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
When an array of marker sizes is provided in "markers" mode in scatter3D, the displayed size of the markers is half the size displayed when a single value is provided instead of an array. For example, if there are two points on a trace and "[20, 20]" is provided, the displayed markers are displayed at exactly the same size as if only "10" were provided.
Additionally, when you provide an array with fewer elements than points the trace have (for example, a trace with 3 points that is given the array "[20, 20]"), the remaining point markers are sized by default to 10. Maybe that's the expected behavior, but in other charts like scatter2D or scatterpolar the remaining points become hidden (size 0), so I thought it was worth mentioning that too.
Codepen: https://codepen.io/neosdkov/pen/abMrpRo
(not related but thank you all for your great work! I've been using plotly for a few months now and it's just amazing!)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
复现链接的 CodePen 中 scatter3D 标记大小设置的案例:将标量大小与值相同的大小数组进行比较,然后尝试一个短于点数的数组。跟踪 scatter3D 标记的入口点,并验证数组值是否与标量大小设置一致,以及短数组的行为是否是有意设计的,并且与报告中的预期一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100