Skip to content

Commit

Permalink
feat: top y-coordinate of ruler moves with belief time, too
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Jul 28, 2023
1 parent 0ebb4af commit 9b92b6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flexmeasures/data/models/charts/belief_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,16 @@ def matrix_chart(
"type": "temporal",
"timeUnit": "hoursminutesseconds",
},
"y": {
"field": "belief_time",
"type": "temporal",
"timeUnit": "yearmonthdate",
},
"yOffset": {
"value": {
"expr": "(scale('y', 24 * 60 * 60 * 1000) - scale('y', 0))"
}
},
},
},
],
Expand Down

0 comments on commit 9b92b6e

Please sign in to comment.