mykola-digtiar / chartjs-plugin-piechart-outlabels

Highly customizable Chart.js plugin that displays labels outside the pie/doughnut chart.
https://piechart-outlabels.netlify.com/sample/
MIT License
52 stars 39 forks source link

Outlabels rendered outside of canvas #11

Open consciousnessdev opened 5 years ago

consciousnessdev commented 5 years ago

i'd set options to: responsive: true, maintainAspectRatio: false

a target rendered like this target

but its rendered like this rendered

matthewkris commented 5 years ago

I'm having this exact issue.

SUVOLewis commented 5 years ago

Has anyone got a fix for this yet? Personally, I'm using "zoomOutPercentage" to get by at the moment, but this falls apart very quickly when I dynamically generate charts with lots of sections, which cause the labels to be pushed out very far.

Is there any way at all to make this dynamic?

deepak-ksolves commented 5 years ago

I am having exact this problem. What i did is used custom scrollbar option and keep changing padding value based on this of chart therefore keep reducing the size of chart in canvas till all the outlabels get inside the box.

layout: {
   padding: 20
}

But there is still need some update such that it can dynamic reduce the size of chart in canvas till all outlabels get inside canvas.

dvyue commented 4 years ago

So sad no one's maintaining this anymore! :(