diff --git a/documentation/changelog.rst b/documentation/changelog.rst index b6d84521e..5d4376647 100644 --- a/documentation/changelog.rst +++ b/documentation/changelog.rst @@ -10,6 +10,8 @@ v0.23.0 | August XX, 2024 New features ------------- * Add basic sensor info to sensor page [see `PR #1115 `_] +* Support zoom-in action on the asset and sensor charts [see `PR #1130 `_] + Infrastructure / Support ---------------------- diff --git a/flexmeasures/data/models/charts/belief_charts.py b/flexmeasures/data/models/charts/belief_charts.py index 5242789c5..b6cf4abfd 100644 --- a/flexmeasures/data/models/charts/belief_charts.py +++ b/flexmeasures/data/models/charts/belief_charts.py @@ -84,6 +84,9 @@ def bar_chart( "as": "source_name_and_id", }, ], + "selection": { + "scroll": {"type": "interval", "bind": "scales", "encodings": ["x"]} + }, }, REPLAY_RULER, ], @@ -628,6 +631,9 @@ def create_line_layer( }, "detail": [FIELD_DEFINITIONS["source"]], }, + "selection": { + "scroll": {"type": "interval", "bind": "scales", "encodings": ["x"]} + }, } return line_layer