Simple-charts icon indicating copy to clipboard operation
Simple-charts copied to clipboard

Aspect Ratio Bug

Open giacomobg opened this issue 4 years ago • 2 comments

I noticed in the Line template that we take the width and calculate the height with an aspect ratio, but then subtract the height of the margins.

This means as far as I can see we are including the margin in the aspect ratio, which is a mistake since the margin does not scale.

I think this extends to other charts. This might explain some oddly thick or thin bars at different sizes that I noticed in the past in the stacked bar horizontal.

giacomobg avatar Mar 16 '20 15:03 giacomobg