Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sensors with % units get chart including 0-100% in their domain #739

Merged
merged 5 commits into from Jun 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions flexmeasures/data/models/charts/belief_charts.py
Expand Up @@ -132,6 +132,8 @@ def chart_for_multiple_sensors(
stack=None,
**FIELD_DEFINITIONS["event_value"],
)
if unit == "%":
event_value_field_definition["scale"] = dict(domain={"unionWith": [0, 100]})

# Set up shared tooltip
shared_tooltip = [
Expand Down