mirror of
https://github.com/Roslund/sthlm-mesh.git
synced 2026-08-07 01:13:09 +02:00
use getElementById
This commit is contained in:
@@ -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`;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user