plotly / plotly/react-plotly.js
OnBeforeHover returns just an event rather than datapoints and an event
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 4
説明
The title really says it all. I've attempted to set up an example in codePen (taking my code and boiling it down), however, the older versions didn't even call OnBeforeHover so I tried updating the versions, but I'm not at all familiar with the way in which scripts are loaded in via HTML tags, I think I've done it correctly, however, I have access to neither createPlotlyComponent nor plotComponentFactory in my code.
https://codepen.io/tim-logan/pen/NWgbBvr?editors=1010
I'm attempting to get enough data to make the hover only be active near the line rather than the entire fill, but it's a lot harder if I only have the mouse event.
Oh, and just for clarity, what I get out is NOT
{
event: mouseEvent,
points: [] /undefined etc
...
}
What I get out is just
event: mouseEvent
(The type definitions claims I should get the first out though)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされたCodePenを使用してOnBeforeHoverの動作を再現し、コールバックにイベントとdatapointsの両方が含まれると記載されているコンポーネントの型定義を調べてください。コールバックがどのように公開されているかを追跡し、返される値にマウスイベントだけでなくdatapointsも含まれていることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 32/100