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.

[Feature] add legendhovered event

See original GitHub issue

What problem does this feature solve?

This feature is related to “Can´t display tooltip on chart legend (Echarts)”. The problem basically is that there seems to be no way to show a tooltip for the legend item. In our case some of the items are often lengthy and do not fit:

Screenshot 2022-03-14 193605

Documentation has entry for legend.tooltip, but it doesn’t seem to do anything. I’m not sure if it’s a bug with implementation or documentation. Either way would be great to have it working or at least to have a legendhovered event to show the tooltip manually, as @Ovilia suggested here.

What does the proposed API look like?

Have a legend.tooltip working or legendhovered triggered when legend item is hovered. In the latter case listener should receive all details about currently hovered legend item.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
youthugcommented, Jul 22, 2022

@jayarjo It worked! So I set position in the tooltip property, it also takes effect for the legend.tooltip property. So…I thought they are the same! But it does create a tooltip for the legend. Not sure if I made it clear. Anyway, thanks!

0reactions
thedelkcommented, Jul 27, 2022

I’m trying to make the legend tooltip match the item tooltip, but the legend.tooltip.formatter does not receive all of the parameters that the tooltip.formatter receives. It receives the name, but not the value.

Is there a way to accomplish this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to handle mouse over event in legend in highcharts?
I am able to handle mouseover/mouseout event ...
Read more >
Legend item - on hover event · Issue #194 - GitHub
Is there a way to handle on hover event in legend item? It seems to be possible to access legend item in jquery...
Read more >
Add an event for legend item hovering –
You might add mouseover/mouseout events to legend items. This event should provide the index of the legend item.
Read more >
(Angular) Implement Legend hover/mouseover event
Hello, I'm trying to implement the 'hover'/'mouseover' events chart legends to highlight the Y axes corresponding to the series of that ...
Read more >
itemmouseover - Sets Mouse Over Event | CanvasJS Charts
itemmouseover: Function. Sets the mouseover event handler for the legend, which is triggered when the user moves the mouse(input device) over a legend...
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