Skip to content

Commit

Permalink
feat: zoom-in asset and sensor chart (#1130)
Browse files Browse the repository at this point in the history
* feat: zoom-in

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* docs: add changelog entry

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

---------

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
  • Loading branch information
victorgarcia98 committed Aug 13, 2024
1 parent 71171b0 commit 3bc9033
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ v0.23.0 | August XX, 2024
New features
-------------
* Add basic sensor info to sensor page [see `PR #1115 <https://github.com/FlexMeasures/flexmeasures/pull/1115>`_]
* Support zoom-in action on the asset and sensor charts [see `PR #1130 <https://github.com/FlexMeasures/flexmeasures/pull/1130>`_]


Infrastructure / Support
----------------------
Expand Down
6 changes: 6 additions & 0 deletions flexmeasures/data/models/charts/belief_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def bar_chart(
"as": "source_name_and_id",
},
],
"selection": {
"scroll": {"type": "interval", "bind": "scales", "encodings": ["x"]}
},
},
REPLAY_RULER,
],
Expand Down Expand Up @@ -628,6 +631,9 @@ def create_line_layer(
},
"detail": [FIELD_DEFINITIONS["source"]],
},
"selection": {
"scroll": {"type": "interval", "bind": "scales", "encodings": ["x"]}
},
}
return line_layer

Expand Down

0 comments on commit 3bc9033

Please sign in to comment.