Add caption and style it
This commit is contained in:
parent
3c48c2bd2d
commit
620121b505
2 changed files with 12 additions and 3 deletions
|
|
@ -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%");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue