plotly / plotly/react-plotly.js
Async updates to the plotly values make annotations disappear
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた CodePen の再現から始め、x、y、g に対する React の状態変更を追跡し、個別の更新と同時更新を比較します。g が変更された後に注釈が消え、チャートをダブルクリックした後に戻ることを確認します。非同期更新の間も注釈が表示されたままになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100