Creating Tooltip using mouserover in xaxis labels/Yaxis labels #9628
-
Hi Team, In my current project requirement, i need to populate tooltip while mouserover in the spots of xaxis labels/Yaxis labels |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the example of programatic tooltip and hover: https://www.chartjs.org/docs/master/samples/advanced/programmatic-events.html |
Beta Was this translation helpful? Give feedback.
You can use the
onHover
option as demonstrated by the fiddle of @etimberg in #9602 (changeonClick
toonHover
) and then use programatic tooltip to trigger it: https://www.chartjs.org/docs/master/developers/api.html#setactiveelements-activeelementsexample of programatic tooltip and hover: https://www.chartjs.org/docs/master/samples/advanced/programmatic-events.html