[Feature] add legendhovered event
See original GitHub issueWhat 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:
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:
- Created 2 years ago
- Comments:7
Top 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 >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
@jayarjo It worked! So I set
position
in thetooltip
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!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 thetooltip.formatter
receives. It receives thename
, but not thevalue
.Is there a way to accomplish this?