Can I trigger chart hover state without actually hovering over chart section? #8368
Answered
by
etimberg
IvanBurlaka
asked this question in
Q&A
-
Hi guys! I have custom chart legend outside of canvas and my objective is to change chart's section color and show tooltip on hover of corresponding legend item. Thanks in advance for any help! |
Beta Was this translation helpful? Give feedback.
Answered by
etimberg
Feb 2, 2021
Replies: 1 comment
-
In v2, this might be possible but likely requires a synthetic event to be sent. In v3, there's an API for that. https://www.chartjs.org/docs/master/developers/api#setactiveelementsactiveelements |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kurkle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In v2, this might be possible but likely requires a synthetic event to be sent. In v3, there's an API for that. https://www.chartjs.org/docs/master/developers/api#setactiveelementsactiveelements