Axis title could also change the labels in the hovering popup
See original GitHub issueThis is an enhancement suggestion.
When setting the title of an axis, such as:
xaxis: {
type: 'linear',
zeroline: false,
title: "hellox" // <----
},
it would make sense to have the same title as default value in the popup being shown on mouse hovering. Currently, the default value stays “x”, where it could have been “hellox” instead.
See an example here: https://codepen.io/anon/pen/qoGQvx
See also the riginal question asked on Stack Overflow
Please, let me know if that makes sense.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Three-variable hover labels should adapt to supplied axis titles
Three-variable hover labels should adapt to supplied axis titles # ... Axis title could also change the labels in the hovering popup #2618....
Read more >pop up chart hover label | MrExcel Message Board
Hi , I have a Scattergram chart that lists how many hours a group of individuals have been sick from work. The Y...
Read more >Displaying Custom Axis Labels Tooltips in the Chart - Telerik
To display a custom tooltip when hovering the Chart axis labels: Bind to the mouseenter and mouseleave events of the Chart's surface element....
Read more >mouse over event on axis label d3.js javascript - Stack Overflow
The labels on y axis are "area1", "area2" and "area3". When user hover the label "area1", a tooltip will popup to show the...
Read more >Label x axis in pop-up charts - Esri Community
I'm looking for a way to add labels to my data along the x axis. You get them on hover, but I really...
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 Free
Top 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
I think this makes a ton of sense in general and especially in 3d and ternary contexts: 3d because after a few rotations or whatever, it’s no longer visually clear what
x
,y
, andz
mean, and ternary because there’s no reasonable way a user could know whatA
,B
andC
map to 😉@alexcjohnson Thanks for your comment.
I agree. As a way to not always enable this behaviour, we could have some sort of “flag” option (boolean) which would be
false
by default to not break the current behaviour. When setting it totrue
, users could expect limitations such as title being too long and the other things you mentioned.I’m not familiar enough with the code to be able to determine a more robust solution at this point, but I think the above suggestion could do the trick.