plotly / plotly/plotly.js

hoverdistance broken in 3D scatter plots (hover radius vs click radius)?

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

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

bug P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

Hi,

I want to use plotly in interactive dashboards. With my 3D scatter plots, I noticed that it's quite confusing that the click radius is different from the hover radius: when you move the mouse inside a point's hover radius, you get the hover lines that point to the axes, but it doesn't react to clicks yet. For that, you have to go much closer.
Is there a way to change the click radius to match the hover radius?

So I tried to change the hoverdistance parameter in the layout object, but realized that it seems that hoverdistance is broken in 3D plots. Here's a working example. You will see, that changing the hoverdistance doesn't make any difference:
https://codepen.io/bolau/pen/LYvPmWw

Is this a bug, or am I doing something wrong?
Here's the link to the documentation on the hoverdistance parameter, which doesn't distinguish between 2D and 3D plots:
https://plotly.com/javascript/reference/layout/#layout-hoverdistance

Best, Boris

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

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

はじめの一歩

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

調査の方向性

リンクされたCodePenの再現例とlayout.hoverdistanceのドキュメントから始め、その後、3D散布図でのホバーとクリックの挙動を比較します。hoverdistanceが報告されている3Dの挙動を制御すべきかどうかを判断し、その結果が実装またはドキュメントに反映され、クリック半径の問題にも対処されていれば完了です。

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

評価

技術スタック
javascript
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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