Fix oval polar plot — remove height:100% that overrode aspect-ratio

Setting both width:100% and height:100% made CSS ignore aspect-ratio,
stretching the drawing buffer non-uniformly into the tall container.
Fixed by keeping only width:100% + max-height:100% so aspect-ratio:1/1
clamps the height and the element stays square.
Draw functions now use canvas.offsetWidth for the square buffer size.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-03-19 23:35:34 +00:00
parent 35c874da52
commit 123d38d295
2 changed files with 2 additions and 6 deletions

View File

@@ -753,8 +753,6 @@ body {
#polarPlot {
display: block;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
aspect-ratio: 1 / 1;
}