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 * chore: remove unused imports
This commit is contained in:
@@ -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) ?? "";
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user