plotly / plotly/plotly.js

Sunburst leaf opacity does not apply to black text

未关闭
#5,568 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P3
主要语言
JavaScript
星标
18.3k
派生
2k
平均合并
2 天 12 小时
30 天内合并 PR
28

描述

Description of the Issue

When you change the opacity of the leaf for a sunburst trace, text that is supposed to be black (based on the background color of the sector the text belongs to), it does not get affected by the opacity.

See the codepen here: https://codepen.io/Kully/pen/QWdyvJg

image

_Notice that all the text in the leaves of the chart move towards translucent as the opacity knob is turned, except for Cain.

This issue first came up in creating parity tests for the new icicle trace here #5546.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

复现链接的 CodePen 中的行为,重点关注 sunburst trace 的叶节点不透明度和文本颜色渲染。当不透明度发生变化时,叶扇区中的黑色文本能够与其他叶标签一致地变为半透明,且不会使 icicle trace 所记录的 parity case 出现回归时,该 issue 即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。