From 8befa08c9df67b35f59793531bcdd4fe19fd5edf Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 22 Jun 2026 17:25:45 +0200 Subject: [PATCH 1/2] feat: stop mandating zero to be included in the domain of event values in the chart for multiple sensors Signed-off-by: F.N. Claessen --- flexmeasures/data/models/charts/belief_charts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flexmeasures/data/models/charts/belief_charts.py b/flexmeasures/data/models/charts/belief_charts.py index 7b161a0f35..e3281d82b6 100644 --- a/flexmeasures/data/models/charts/belief_charts.py +++ b/flexmeasures/data/models/charts/belief_charts.py @@ -558,6 +558,8 @@ def _setup_event_value_field(sensor_type: str, unit: str) -> dict: event_value_field_definition["scale"] = dict( domain={"unionWith": [0, 105]}, nice=False ) + else: + event_value_field_definition["scale"] = dict(zero=False) return event_value_field_definition From d0992e332eae3f5132125dc273a71f838824848b Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Tue, 23 Jun 2026 22:38:09 +0200 Subject: [PATCH 2/2] docs: changelog entry Signed-off-by: F.N. Claessen --- documentation/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/changelog.rst b/documentation/changelog.rst index 6e8d585933..8932b9ca60 100644 --- a/documentation/changelog.rst +++ b/documentation/changelog.rst @@ -14,6 +14,7 @@ New features * Sensor references in flex-model and flex-context support various ways of filtering by source [see `PR #2209 `_] * Let storage scheduling infer missing ``power-capacity`` from directional device capacities before falling back to site capacity, and default the missing opposite capacity to zero when only a non-zero ``consumption-capacity`` or ``production-capacity`` is configured [see `PR #2222 `_] * CLI support for adding/editing account attributes [see `PR #2242 `_] +* Improve chart axis domain for event values not around zero [see `PR #2244 `_] Infrastructure / Support