Simple-charts
Simple-charts copied to clipboard
Aspect Ratio Bug
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.