plotly / plotly/react-plotly.js

onLegendClick gives wrong state

オープン
#297 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.1k
フォーク
138
平均マージ
3日 2時間
マージ済み PR(30日)
4

説明

Hi,
I've some wired problems when trying to work with the data from onLegendClick.
First example: The two data sources (Beningn, Others) don't have the same properties as the visible is missing in Benign.
CleanShot 2022-10-12 at 11 54 54
Only if the Benign property got clicked once the visible property get's added.

Second example: When I click the legend I always get the data from the second last render. Meaning if I've just clicked on the legend I'll get the data from the second last render instead of the actual current render data.

Thanks for the help!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ソースファイルやテストは指定されていません。まず、2つのデータソースと onLegendClick ハンドラーを使って問題を再現し、その後、レンダーをまたいでコールバックデータがどのように生成されるかを追跡します。両方のデータソースが一貫した表示状態を持ち、コールバックが現在のレンダーのデータを公開すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
data-visualization, frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。