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 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