Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Chart (excluding labels) width percentage

Open buutqn opened this issue 7 years ago • 3 comments

On big screen i have this: chartjs-lots-labels-pie-big

But, because there are a lot of labels, when small screen the result is: chartjs-lots-labels-pie-small

I wish i could select the percentage of the width, to 50, 60, 70 to have something like this chartjs-lots-labels-pie-desired

Also, if there already is an option to make this, i'd be so thankfull if anyone tell me.

buutqn avatar Jun 14 '19 07:06 buutqn

You can use the aspectRatio option.

nagix avatar Jun 14 '19 09:06 nagix

@buutqn can you explain the difference between the current version and the required

jatiny17 avatar Sep 07 '19 10:09 jatiny17

Just disable maintainAspectRatio: false

dangreen avatar Oct 18 '22 20:10 dangreen