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

Issue with positioning of Label in Donut Chart if only one series is enabled

Open yarykstus opened this issue 3 years ago • 0 comments

In mine chart i have few values. It positioning perfectly! but once user disabled all of the values except one - label jumps to the edge of the series, not to the center of it image on this screenshot series 12-18, 19,24, 25-40 and 65+ has 0es. and oly 41-64 has value (10)

Plugin setup is datalabels: { display: true, color: '#fff', font: { weight: 500, size: 15, family: 'Poppins', }, anchor: 'center', formatter: (value: number) => { return value || ''; }, },

yarykstus avatar Aug 31 '22 15:08 yarykstus