chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
63.92k stars 11.89k forks source link

Hovering functionality for long labels #11757

Open vks-dev opened 2 months ago

vks-dev commented 2 months ago

Feature Proposal

I am currently working on a project that is using ChartJS to generate charts based on the data gathered from the database. Recently I found an issue when the labels are too long, if they are then the chart will get pushed to the side. To overcome this I truncated the names of labels on the x and y axes but when we hover over the graph the entire label will be visible.

image

As you can see in the above image the labels on the x-axis are truncated, but when we hover over the bars in the chart, the full label will be displayed. Now I want to see if it's possible to show the entire label in a tooltip when we hover over the labels on the x-axis

Possible Implementation

No response