Issue with axis autorange: state self-mutates 'reversed' -> true
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
調査の方向性
issue に記載された 2 つの autorange 遷移を再現し、React コンポーネントによる Plotly の軸状態の処理に焦点を当てます。完了条件は、true から 'reversed' に変更したときにその値が保持され、その後 true に戻す変更によって、途中で false になることなく反転が切り替わることです。
索引モデルが issue の本文から書いたものです。
説明
As far as I understand, Plotly's axis reversal works by setting autorange to a string value of 'reversed' (with the other options being true for non-reversed autorange, and false for no autorange). After setting this, Plotly will autoscale the axis with range[0] and range[1] of the axis swapped.
The problem is, it seems like after setting autorange -> 'reversed', react-plotly mutates autorange back to true after doing the range reversal. So, there is no way to un-reverse the autorange without setting it first to false, then true.
What I think should happen:
Step 1: autorange true -> 'reversed'
Step 2: autorange 'reversed' -> true //can toggle axis reversal
What actually happens:
Step 1: autorange true -> 'reversed' -> true //last step being done automatically by react-plotly
Step 2: autorange true -> true //doesn't toggle axis reversal b/c no state change
- 主要言語
- 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 件 ·
-
難易度 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
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
quarto-dev/quarto-cli#14915 ·