From fb1d31fdcd5d5c8b31bb098c34143996d47e618f Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 25 Aug 2026 16:09:31 +0200 Subject: chart: label a narrow axis in decimals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A span of 1.2 degrees rounded to whole degrees printed "15" against both the middle and bottom rows, so the axis asserted that two rows drawn at different heights were the same temperature. It reads as a rendering fault, and the scale becomes useless exactly when the chart is at its most magnified. Below a two degree span the labels carry one decimal. Two degrees is where five rows put adjacent labels half a degree apart, which still rounds apart; below that they collide. A decimal label that would not fit the gutter -- well below freezing, where the minus sign costs a column -- falls back to whole degrees, which is wrong but legible and beats shearing the column. The gutter widens by one to hold "16.0°". --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index e38faf9..63ba241 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ Terse, newest first. Versions are git tags. +## 0.1.3 — unreleased + +### Fixed +- Chart axis labels no longer repeat on a narrow range. A 1.2 degree span + rounded to whole degrees put "15" against two different rows, so the axis + said they were the same temperature. Below a 2 degree span the labels carry + one decimal, falling back to whole degrees where a decimal would not fit the + gutter. + ## 0.1.2 — 2026-08-25 ### Changed -- cgit v1.3