emn178 / chartjs-plugin-labels

Plugin for Chart.js to display percentage, value or label in Pie or Doughnut.
MIT License
612 stars 219 forks source link

Change lables position/ change piece width for small piece #118

Open zemeng2015 opened 4 years ago

zemeng2015 commented 4 years ago

Hi, emn178, I'm using your plugin and it works well. Just for small pieces like percentage smaller than 5%, the label is too close to each other Annotation 2020-01-16 151014 I can also hide the rendor by using: render: args => (args.percentage > 3 ? args.percentage + '%' : ''), but that's not requirement. How could I change the piece size for the smaller one or label position base on percentage smaller than 3? Thanks.