Add caption and style it

This commit is contained in:
Alex Selimov 2026-05-11 23:34:26 -04:00
parent 3c48c2bd2d
commit 620121b505
2 changed files with 12 additions and 3 deletions

View file

@ -44,7 +44,7 @@ export function render(weeks, counts) {
const svg = document.createElementNS(svgNS, "svg");
const svgWidth = weeks.length * SHIFT + 30;
const svgHeight = SHIFT * 7 + 20;
const svgHeight = SHIFT * 7;
svg.setAttribute("viewBox", `0 0 ${svgWidth} ${svgHeight}`);
svg.setAttribute("width", "100%");