${repeat(
this.dataSets,
([label]) => label,
([label, ds]) => {
return html`
${label}
${ds.needleValue === undefined ||
ds.needleValue === null ||
isNaN(ds.needleValue)
? ''
: ds.needleValue.toFixed(Math.max(0, ds.precision ?? 0))}
${ds.unit}
`
}
)}
No Data
${repeat(
[...this.dataSets.entries()].sort(),
([label]) => label,
([label, ds]) => {
return html`
${label}
${ds.needleValue === undefined ||
ds.needleValue === null ||
isNaN(ds.needleValue)
? ''
: ds.needleValue.toFixed(Math.max(0, ds.precision ?? 0))}
${ds.unit}
`
}
)}
`
}
}