use getElementById

This commit is contained in:
Anton Roslund
2025-03-31 21:43:14 +02:00
parent ba884e15b0
commit 0dbe32826e
+1 -1
View File
@@ -28,7 +28,7 @@ async function hardwareStatsGraph() {
const colors = labels.map(name => stringToColor(name));
// Adjust chart height based on number of items
const chartContainer = document.querySelector('#hardwareChartContainer');
const chartContainer = document.getElementById('hardwareChartContainer');
chartContainer.style.height = `${labels.length * 25}px`;