1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-27 15:41:45 +01:00

fix: fixes cpu monitor when all values are 0. fixes #2215 (#2222)

* fix: fixes cpu monitor when all values are 0. fixes #2215

* chore: remove unused imports
This commit is contained in:
Amir Raminfar
2023-05-26 12:07:41 -07:00
committed by GitHub
parent cc7d834e35
commit 3d93bb69cb

View File

@@ -28,7 +28,7 @@ const shape = d3
const path = computed(() => {
x.domain(d3.extent(data, (d) => d.x) as [number, number]);
y.domain(d3.extent(data, (d) => d.y) as [number, number]);
y.domain(d3.extent([...data, { y: 1 }], (d) => d.y) as [number, number]);
return shape(data) ?? "";
});