From 17be3cb6a9e5e85b0d1c69dbaae92f9d3ba07642 Mon Sep 17 00:00:00 2001 From: sgtwilko Date: Wed, 26 Feb 2025 13:06:57 +0000 Subject: [PATCH] Change Voltage chart to use suggested min/max (#1) The Voltage/Current chart often either shows lines with so little variation that you cannot see changes, or the values go off the top/bottom. This change allows the chart to adapt dynamically to the values being returned. --- src/public/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/public/index.html b/src/public/index.html index 541c298..f96a489 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -2309,14 +2309,14 @@ }, y: { min: 0, - max: 30, + suggestedMax: 6, ticks: { callback: (label) => `${label}V`, }, }, y1: { - min: -500, - max: 500, + suggestedMin: -50, + suggestedMax: 50, ticks: { stepSize: 50, callback: (label) => `${label}mA`,