texttemplate vs hovertemplate
See original GitHub issueThis pen https://codepen.io/nicolaskruchten/pen/YzzXwdL shows some differences between texttemplate
and hovertemplate
, specifically that %{y}
in texttemplate
doesn’t seem to pick up the formatting from the yaxis
ticklabels the way hovertemplate
does.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Hover text and formatting in JavaScript - Plotly
Over 12 examples of Hover Text and Formatting including changing color, size, log axes, and more in JavaScript.
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 >Python/Plotly: How to customize hover-template on with what ...
This will create simple two scatter3d plots, where hoverdata is x,y and z axis. Now you want to add the data m=[9,8,7,6,5] to...
Read more >Hover Text and Formatting in Python-Plotly - GeeksforGeeks
Example 1: user_defined hovertemplate ... Here, GDP and Expectancy is used as naming convention about the data whereas %{ <variable>} which allows ...
Read more >plotly.graph_objects package — 5.11.0 documentation
The 'hovertemplate' property is a string and must be specified as: A string ... Sets the source reference on Chart Studio Cloud for...
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
Mmm… that is unfortunate indeed. The code path a value takes before reaching
texttemplate
andhovertemplate
is a bit different hence the difference. We should aim to close the gap.I agree that the default labels should contain those 3
tick
properties.Here’s my WIP branch:
https://github.com/plotly/plotly.js/compare/texttemplate-formatting-fixes
Anyone should feel free to pull it down and add commits to it during the next two weeks.