diff --git a/assets/components/LogViewer/StatSparkline.vue b/assets/components/LogViewer/StatSparkline.vue index e8e4fd15..3fd9e014 100644 --- a/assets/components/LogViewer/StatSparkline.vue +++ b/assets/components/LogViewer/StatSparkline.vue @@ -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) ?? ""; });