Clamp temps domain to 100ºC

This commit is contained in:
2024-05-03 17:46:50 +01:00
parent 9f39f5dafe
commit d528712061

View File

@@ -29,6 +29,7 @@ export const Temps = () => {
values: dynamicData.temps,
labels: staticData.components,
}}
domain={[0, (max: number) => Math.max(100, Math.ceil(1.25*max))]}
formatOptions={{ si: true, prefix: false, units: 'ºC' }}
data={history}
total={staticData.components.length}