Great Chart Improvement Idea #1222
gpena208777
started this conversation in
Ideas
Replies: 1 comment
-
Yes it works perfectly (including the callbacks for the custom labels) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use Charts.js for a project that also uses a graph.
On hover over - the tooltip displays both data values without clicking. This makes data viewing at specific points very nice.
Hovering horizontally across the chart pops up a vertical "crosshair" line at that time index.
Here are the configs to achieve this.
mode: 'index' → When you hover anywhere along the X-axis, Chart.js will display tooltips for all datasets at that index (so both Chimney Exit and Stove Exhaust values show up at once).

intersect: false → You don’t need to hover directly on a point/line. Hovering near the vertical line will still trigger the tooltip for both series.
Beta Was this translation helpful? Give feedback.
All reactions