I am creating a pie chart in my project and sometimes the legends are too long the border cuts them off. I can’t increase the container’s width any more than it already is. So, I’m looking for a way to add ellipsis to the legends. the pie chart that I get
I want the legends to look like the labels on the axes in this image when I render the chart. I already tried using the options.legends.labels.generateLabels
but it isn’t working as I expected it to.