Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement `hovertemplate` for all traces that support hover

See original GitHub issue

Building on top of,, and 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 and violin (for points done in | otherwise not implemented)
  • all the gl3d trace types: scatter3d, surface, mesh3d, stremtubes, cone, isosurface
  • scattercarpet
  • ohlc and candlestick
  • splom
  • parcats
  • pointcloud, heatmapgl and contourgl (are we deprecating those trace types in v2?)

cc @nicolaskruchten

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

nicolaskruchtencommented, 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

jackparmercommented, Sep 10, 2020

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:

  • 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
  • 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 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found