chartjs / chartjs/Chart.js

Axis onHover & onLeave

Open
#9,844 6 comments 3 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Feature Proposal
Support `onHover` and `onLeave` handlers per axis similar to the `onHover` and `onLeave` handler of the legend. Ideally triggered per tick? And ideally through arguments we can determine the tick index.

### Feature Use Case

This in combination with `tooltip.setActiveElements` would allow us to show tooltips for axis when hovering over ticks.
Like also mentioned in: https://github.com/chartjs/Chart.js/issues/3907

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.