class GaugeGroup { constructor(nodeId, Location, gaugesCount, maxGaugeValues, dataTypes) { this.nodeId = nodeId; this.gaugesCount = gaugesCount; this.maxGaugeValues = maxGaugeValues; // Maximum value the gauge can display this.dataTypes = dataTypes; // Array of data type names for each gauge this.location = Location; // Create a new div element this.element = document.createElement("div"); this.element.className = "gaugeGroup"; // Set the HTML of the new div this.element.innerHTML = `

${this.nodeId} - ${this.location}

${Array(this.gaugesCount).fill().map((_, i) => `
0
`).join('')}