plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.88k stars 1.85k forks source link

[FEAT] "x unified" hover mode working across subplots #4755

Closed emmanuelle closed 5 months ago

emmanuelle commented 4 years ago

This would make it possible to display the information of several subplots in the same hoverbox. Probably this would need an attribute since this behaviour is not desired in all cases.

alexbhatt commented 4 years ago

it would be most helpful, particularly in visualizing across COVID time series for multiple graphs; linked across R and python functionality.

GitJJ commented 4 years ago

I would also find this feature particularly useful.

schoolie commented 4 years ago

+1, would love to see this feature.

g-deoliveira commented 4 years ago

+1, this would be great

nicolaskruchten commented 4 years ago

Thanks for the enthusiasm, folks! It's a good feature and we'd love to have it in the library but it's not on anyone's roadmap at the moment. That said, we as maintainers would be happy to help someone from the community to implement it, or to accept sponsorship to get it on to our short-term roadmap :)

A few notes re how this might work at the schema/behaviour level... This would need to be one or likely a few new accepted values for hovermode: we currently accept closest, x and x unified. In both the latter cases, hovering over a trace linked to a given pair of x and y axes causes hover labels to appear for each trace linked the same x/y axis pair. We would need a variant on both x and x unified, perhaps something like all x and all x unified, which would cause hover labels to appear for every trace linked to the same x axis, regardless of y axis. We would also need to think about "matched" axes, and this could be yet another flavour of hovermode (all x and matched x?). We'd also need to think about what this would visually look like in unified mode: would there be one unified label per x/y pair or one big unified label near the cursor? We'd also need to take into consideration spikelines, especially with matched axes.

addarnr commented 4 years ago

The solution for this issue is at the link below. https://stackoverflow.com/questions/63358465/scope-in-python-subplot-similar-to-matlabs-stackedplot

nicolaskruchten commented 4 years ago

The solution for this issue is at the link below

That question isn't about plotly ... ?

immartian commented 3 years ago

it would be most helpful, particularly in visualizing across COVID time series for multiple graphs; linked across R and python functionality.

exactly, like this one https://covid19-projections.com/path-to-herd-immunity/

POI-Root commented 2 years ago

+1, this would be very helpful

yhmickey commented 2 years ago

+1

InvisOn commented 2 years ago

Using the Generic Crossfilter Recipe may be a suitable alternative for some people. I've used it with some success to highlight points across subplots.

GreekQuant commented 2 years ago

+1

GlebMorgan commented 2 years ago

+1 Probable duplicate: https://github.com/plotly/plotly.js/issues/2114

nicolaskruchten commented 2 years ago

Yes, this is a duplicate of #2114 and in the same state: it's very unlikely that anyone on the Plotly team can work on this without a financial sponsor, although we'd be happy to work with someone from the community who wants to implement this themselves and submit a pull request.

Disorrder commented 1 year ago

+1

Sank-WoT commented 1 year ago

+1

jacobrichey commented 1 year ago

+1

rudolferemyan commented 1 year ago

+1

SIDD2310 commented 11 months ago

+1

MarcSkovMadsen commented 10 months ago

+1. Would love this feature too.

loicduffar commented 9 months ago

+1 Still not in the road map ?

Sladerix commented 8 months ago

+1

Episkiliski commented 8 months ago

+1. This would really make a difference using Plotly from my point of view.

AlanCPSC commented 7 months ago

+1 Related bug here: add_hline() breaks when axis is shared

walkerpayne commented 7 months ago

+1 :)

chikko80 commented 6 months ago

+1

Cian-Byrne commented 6 months ago

+1

drypatrick commented 6 months ago

+1

sde-cdsp commented 6 months ago

+1

giudici-uturn commented 6 months ago

+1

raja-jain-skydio commented 5 months ago

+1

drypatrick commented 5 months ago

I found how to make it works, check out the codepen

archmoj commented 5 months ago

This would be resolved by #6947.