question-mark
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.

Axis title could also change the labels in the hovering popup

See original GitHub issue

This 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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolaskruchtencommented, May 7, 2018

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, and z mean, and ternary because there’s no reasonable way a user could know what A, B and C map to 😉

1reaction
adubecommented, May 7, 2018

@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 to true, 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.

Read more comments on GitHub >

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

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found