chartjs-plugin-labels icon indicating copy to clipboard operation
chartjs-plugin-labels copied to clipboard

Percentage disappers for pie slice when overlap is false

Open vik639 opened this issue 6 years ago • 4 comments

I set overlap = false and when I load the pie chart I have one slice of 4%. Hovering over this pie slice the 4% label disappears. It seems that anything larger than 4%, the percentage on the pie slice is fine.

vik639 avatar Aug 22 '18 20:08 vik639

it's expected if overlap = false. When the area can't contain the label, it won't display.

emn178 avatar Aug 23 '18 12:08 emn178

But it does display initially. Its only when you hover over it the label disappears.

Sent from my iPhone

On Aug 23, 2018, at 6:23 AM, emn178 [email protected] wrote:

it's expected if overlap = false. When the area can't contain the label, it won't display.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vik639 avatar Aug 23 '18 12:08 vik639

Maybe the size change small when hover. Can you post sample code?

emn178 avatar Aug 23 '18 13:08 emn178

I'm working on getting you a sample. Also, setting arc=true fixes the issue, however, I don't want the percentages to arc so this solution won't work.

vik639 avatar Aug 23 '18 17:08 vik639