Implement `hovertemplate` for all traces that support hover
See original GitHub issueBuilding on top of https://github.com/plotly/plotly.js/pull/3126, https://github.com/plotly/plotly.js/pull/3284, https://github.com/plotly/plotly.js/pull/3398 and https://github.com/plotly/plotly.js/pull/3436 hovertemplate
is now supported for trace types: scatter
, bar
, pie
, histogram
, scattergl
, sankey
, scatterpolar
, barpolar
, scatterternary
, scatterpolargl
, choropleth
, scattergeo
and scattermapbox
.
The “missing” trace types are:
-
contour
,heatmap
,histogram2d
,histogram2dcontour
-
box
andviolin
(for points done in https://github.com/plotly/plotly.js/pull/3685 | otherwise not implemented) - all the gl3d trace types:
scatter3d
,surface
,mesh3d
,stremtubes
,cone
,isosurface
-
scattercarpet
-
ohlc
andcandlestick
-
splom
-
parcats
-
pointcloud
,heatmapgl
andcontourgl
(are we deprecating those trace types in v2?)
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Hover text and formatting in Python - Plotly
Customizing hover text with a hovertemplate¶. To customize the tooltip on your graph you can use the hovertemplate attribute of graph_objects traces, which...
Read more >Python/Plotly: How to customize hover-template on with what ...
For Plotly Express, you need to use the custom_data argument when you create the figure. For example: fig = px.scatter( data_frame=df, ...
Read more >Introduction to Hovertemplate in Plotly Graphs - Medium
In this paper, we'll try to point out what hovertemplate is in Plotly, how we can use it, and how we can add...
Read more >Hover Text and Formatting in Python-Plotly - GeeksforGeeks
If layout.hovermode='x' , a single hover label appears per trace, ... fig.update_traces(mode = "markers+lines" , hovertemplate = None ).
Read more >Plotly hover text - Caritas Castellaneta
Get code examples like "plotly heatmap hovertemplate vs hover text" ... that I use in almost all my plots now, either for titles,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
This issue has been tagged with
NEEDS SPON$OR
A 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:
Please include the link to this issue when contacting us to discuss.