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