bug with selectedpoints when using multiple histogram
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
Hi,
I found a bug while trying to select a bar in a diagram with multiple histograms. I reproduce the issue on this codepen: https://codepen.io/martin-alfonsi/pen/ZEJwxNz
It seems that if all the values from an histogram are before all the values from the other histogram, then trying to select a bar on the furthest histogram using selectedpoints will deselect all instead.
Here the blue 1.5 bar should be select but all bars are unselected:

And if I move the orange bar (line 7 from the JS) between or after the blue, then there is no issue:


コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた CodePen の再現例から始め、複数のヒストグラムと selectedpoints に対する plotly.js のヒストグラム選択処理を追跡します。一方のヒストグラムの値がすべてもう一方の値に先行するケースを再現し、正常に動作する並べ替え後のケースと比較します。最も遠いヒストグラムのバーを選択したときにすべてのバーの選択が解除されるのではなく、そのバーが選択されたままになること、および報告された配置に対するリグレッションテストのカバレッジがあることを完了条件とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100