plotly / plotly/react-plotly.js
Async updates to the plotly values make annotations disappear
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 138
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 4
描述
https://codepen.io/mason142/pen/gOLmvGY
In this codepen I have a scatter chart setup with some setTimeout's to trigger react state changes which power the values in plotly. As you can see, the red line disappears after I change the value of g. if you double click the chart it comes back. If I update x,y, and g at the same time then there are no issues.
If annotations x,y values are hard coded and don't change based on state changes like in this example then the problem also goes away.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 CodePen 复现开始,跟踪 x、y 和 g 的 React 状态变化,将分别更新与同时更新进行比较。确认 g 发生变化后注释会消失,并在双击图表后恢复;当注释在异步更新期间仍保持可见时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- data-visualization, frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100