FIX: Graph now uses Autoscale unit

This commit is contained in:
Patrick Haßel 2025-02-25 11:57:52 +01:00
parent 0b99043d5a
commit 13c4652244

View File

@ -118,7 +118,7 @@ public class Graph {
final int fontH3_4 = (int) Math.round(g.getFontMetrics().getHeight() * 0.75); final int fontH3_4 = (int) Math.round(g.getFontMetrics().getHeight() * 0.75);
g.setColor(Color.gray); g.setColor(Color.gray);
final String string = "%s [%s]".formatted(series.getTitle(), series.unit.unit); final String string = "%s [%s]".formatted(series.getTitle(), autoscale.unit);
g.drawString(string, border, border + fontH3_4); g.drawString(string, border, border + fontH3_4);
yLabel(g, valueMax, DASHED, Color.red); yLabel(g, valueMax, DASHED, Color.red);