plotly / plotly/plotly.js

Boxplot hoverinfo/hovertext fails to take

Offen
#7,318 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

Hello! I'm trying to customize the hover behavior of a box plot, and it doesn't seem to be working in the way I'd expect.

Reproduction of the issue here: https://codepen.io/lswainemoore/pen/MYgJQJp

In the first two plots, I've tried the two methods that I'd expect to work based on the documentation and other plot types. In A, which uses the hovertemplate method that works for scatter C, the original hovers are unchanged. In B, which uses the text + hoverinfo method that works for scatter D, the hovers disappear. The style of the hovers is customizable via layout, but content seems not to be.

I see some mention of this issue here / here (in python, though I trust the issue is the same), but no resolution yet. Hopefully my reproduction above is helpful for making progress on this! If a fix isn't possible in the short term, it would be nice to confirm that this is a known issue at least, and that I'm not just holding it wrong.

Appreciate any thoughts and help with this.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der verlinkten CodePen-Reproduktion und vergleiche das Verhalten des Box-Plots mit den Scatter-Beispielen, die hovertemplate und text zusammen mit hoverinfo verwenden. Lies die Referenzdokumentation für Box-Plots und die zugehörigen Issues #5706 und plotly.py #3334. Als erledigt gilt die Aufgabe, wenn der Hover-Inhalt von Boxplots erwartungsgemäß angepasst werden kann oder die bekannte Einschränkung eindeutig dokumentiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.