From c9eb40f45513946a4ff4976d4c6999bb5ac0eefd Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 25 Apr 2024 16:59:27 +0200 Subject: [PATCH] fix: fix metricPlot y zoom reset --- web/frontend/src/plots/MetricPlot.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/frontend/src/plots/MetricPlot.svelte b/web/frontend/src/plots/MetricPlot.svelte index bd44675..ba3c294 100644 --- a/web/frontend/src/plots/MetricPlot.svelte +++ b/web/frontend/src/plots/MetricPlot.svelte @@ -461,7 +461,7 @@ }, scales: { x: { time: false }, - y: maxY ? { range: [0, maxY * 1.1] } : {}, + y: maxY ? { min: 0, max: (maxY * 1.1) } : {auto: true}, // Add some space to upper render limit }, legend: { // Display legend until max 12 Y-dataseries