diff --git a/assets/js/graph.ts b/assets/js/graph.ts index 3a0049b7..379effab 100644 --- a/assets/js/graph.ts +++ b/assets/js/graph.ts @@ -16,7 +16,7 @@ function resizeGraphs() { const graph: SVGPathElement | null = $('#js-barline-graph', el); if (graph) { - graph.setAttribute('style', `transform: scale(${parent.clientWidth / 375});`); + graph.style.transform = `scale(${parent.clientWidth / 375})`; } } });