Skip to content

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Dec 8, 2021

Fix: #9842

I extracted the active element determination code for core and tooltip to a helper function for less complexity.

Because there was no public way of properly determining if the event is inside chartArea from the tooltip plugin, I added a inChartArea boolean to the event args. Could be useful for external plugins.

@kurkle kurkle merged commit ba6b446 into chartjs:master Dec 8, 2021
@peteruithoven
Copy link

@kurkle thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Showing external tooltip on legend hover issue
3 participants