Repository navigation
Implement hovertemplate for all traces that support hover #3437
Description
Activity
- changed the title
[-]Implement `hovertemplate` for all trace that support hover[/-][+]Implement `hovertemplate` for all traces that support hover[/+]on Jan 14, 2019 Yup! I would say that scatter3d is the most important remaining one, followed by parcats and splom, then contour/heatmap/surface then the the histogram2d ones
Reacted by etpinardPersonally, I would find it helpful and intuitive if for
boxthehovertemplatewould be applied to single points only, not affecting the other hover texts (such as median, min, lower fence, ...).There could be a separate property to handle these.
scatter3d is the most important remaining one, followed by parcats and splom
Cool, we'll try to fit these in
v1.45.0. Thanks for the info!If I can revise my original priority list, I might put @mpf82's suggestion above
parcats... It's pretty useful to be able to mouse over an outlier to know which one it is!I might put @mpf82's suggestion above
parcatsI would find it helpful and intuitive if for
boxthehovertemplatewould be applied to single points only, not affecting the other hover texts (such as median, min, lower fence, ...).Hmm. We haven't figured out the api for that one yet. See #3126 (comment)
We can't just make
hovertemplatejust work on box points, because at some point we'll want to implement hovertemplates on all box hover labels.We can't just make
hovertemplatejust work on box points, because at some point we'll want to implement hovertemplates on all box hover labels.I actually would find this to be most natural, and then we'd add
boxhovertemplateor similar for the non-single-point ones.we'd add
boxhovertemplateI really dislike three-word attribute names, but I guess that would be one way to solve the problem.
In a similar way, we'll need to declare multiple
*hovertemplateattributes forparcats: one when hovering over links, and one when hovering over nodes.Sankey does a good job at this: it declares two
hovetemplateattributes: one inlink.hovertemplateand one innode.hovertemplate. Unfortunately, forparcatsandbox/violinwe don't have "nice" attribute containers like these to work with.Hmm well, I guess for
parcatswe could use thelinecontainer and then maybe coerce ahovertemplateinside eachdimensionsitem? Or maybe have the roothovertemplateapply to all the dimensions/nodes and be ignored when hovering on links?After #3530, only
box,violin,ohlc,candlestickand the old gl2d traces will be missinghovertemplatesupport.hovertemplate support for
boxandviolinpoints is implemented in #3685This issue has been tagged with
NEEDS SPON$ORA community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.
Sponsorship range: $5k-$10k
What Sponsorship includes:
- Completion of this feature to the Sponsor's satisfaction, in a manner coherent with the rest of the Plotly.js library and API
- Tests for this feature
- Long-term support (continued support of this feature in the latest version of Plotly.js)
- Documentation at plotly.com/javascript
- Possibility of integrating this feature with Plotly Graphing Libraries (Python, R, F#, Julia, MATLAB, etc)
- Possibility of integrating this feature with Dash
- Feature announcement on community.plotly.com with shout out to Sponsor (or can remain anonymous)
- Gratification of advancing the world's most downloaded, interactive scientific graphing libraries (>50M downloads across supported languages)
Please include the link to this issue when contacting us to discuss.
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
Reopening because still relevant
Building on top of #3126, #3284, #3398 and #3436
hovertemplateis now supported for trace types:scatter,bar,pie,histogram,scattergl,sankey,scatterpolar,barpolar,scatterternary,scatterpolargl,choropleth,scattergeoandscattermapbox.The "missing" trace types are:
contour,heatmap,histogram2d,histogram2dcontourboxandviolin(for points done in Hovertemplate for box/violin points #3685 | otherwise not implemented)scatter3d,surface,mesh3d,stremtubes,cone,isosurfacescattercarpetohlcandcandlesticksplomparcatsdeprecatedpointcloud,heatmapglandcontourgl(are we deprecating those trace types in v2?)cc @nicolaskruchten