Cannot disable Pie dataLabels text-ellipsis functionality #6841
If you create a pie chart within a small area, and specifically would like to have dataLabels overflow the chart margin/area, it does not seem currently possible. They are clipped and text-ellipsis is applied.
Have a method/property to disable text ellipsis/clipping of text for dataLabels, even if it overflows the chart margin/area.
dataLabel.sideOverflow logic prevents this, based on the plotWidth
I'm sure the devs may have a better method, but my personal suggestion is to read from the dataLabels.crop option before applying the sideOverflow logic within seriesTypes.pie.prototype.placeDataLabels
Updated the variable section:
Updated the check for sideOverflow functionality:
Maybe there is a better way, like reading the style for textOverflow, but since these are dataLabels and not axis labels, I wasn't sure.
The text was updated successfully, but these errors were encountered:
While this does remedy the text ellipsis part, it introduces other issues like the text getting clipped off the edge of the chart. Some may want text to be contained within the chart, but in this instance I was looking for a way to display the text whether it would overflow or not -- I still wanted it visible.
Perhaps my desired result is too specific a request, but I wanted to submit the issue/suggestion either way.