or
I want to apply tooltip to legend
If possible tooltip content I can write
please....... help me
Hi.
I'm using donut chart, and I would like to know if there is any way to add a tooltip with the full name of the legend when hovering over it. I needed it because there is a scenario where I add ellipsis when the name is too big. As in the image below:
I'm adding ellipsis changing the legend content:
public legendItemContent = (elements: any): string => {
if (elements.text.length > 30) {
elements.text = elements.text.substring(0, 30);
return elements.text.concat('...');
}
return elements.text;
};
I tried several solutions but none were successful. I found out this answer, which was the closest approach, but it's not exactly what I wanted.
If it helps in any way, I'm using this stackblitz project to perform my tests.
Thank you beforehand.