Axes incorrect when updating layout but not data
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
調査の方向性
リンクされたCodeSandboxのApp.jsから始め、constant または nested-constant のデータをPlotコンポーネントに渡しながら入力を変更して、問題を再現します。Plotコンポーネントのlayout-only更新パスを追跡し、データをディープコピーして更新する場合と比較します。軸がプロットされた範囲を維持し、Reset axesをクリックしなくてもデータポイントを引き続きホバーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When updating the layout but passing a constant data object (or a new object but with nested constant objects), the traces stay the same but the axes reset to the defaults as if no data is plotted, causing the graph to be incorrect. The data points can also not be hovered over in this state.
Forcing the plot to redraw (e.g. by clicking 'Reset axes') corrects the plot and creating a deep copy of the data object before passing to the Plot component removes the issue.
Example at https://codesandbox.io/s/agitated-babycat-j9hjb8?file=/src/App.js (issue can be seen when changing text in input)
I have been unable to recreate this with pure plotly.js but I am less familiar with that library, so sorry if the issue is there instead.
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/react-plotly.js のほかの issue
-
P3 plotly-internal size: 1 task
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
plotly/react-plotly.js#386 ·
-
enhancement P3 size: 1
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
plotly/react-plotly.js#380 · コメント 7 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
plotly/react-plotly.js#358 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
plotly/react-plotly.js#354 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
plotly/react-plotly.js#353 · コメント 1 件 ·
plotly/react-plotly.js の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Seeed-Studio/wiki-documents#5655 · コメント 2 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
capricorn86/happy-dom#2435 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
Edit: CW+ オープンchannels:edit check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100