Bar Chart Daily Aggregations #68
Unanswered
Frankenberrypi
asked this question in
Q&A
Replies: 1 comment
-
I think #28 will point you in the right direction. If you need assistance let me know and I'll give you a hand :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have sensor entity that stores the daily amount of rain and resets every midnight. I'd like to have a bar graph with one bar for each day that has the maximum (or last) value for each day. This is probably possible with a fairly short lambda function, but I have no idea how to write it. This is what I have so far:
`type: custom:plotly-graph
hours_to_show: 168
layout:
height: 400
xaxis:
rangeselector:
'y': 1.25
buttons:
- count: 7
step: day
- count: 1
step: month
entities:
name: Daily Rain
type: bar
refresh_interval: 10
`
...and I'm hoping for something that looks about like this:
So far I've tried a few lambda functions with things like math.max, but I don't know how to restrict that to per day. Plotly appears to have an aggregation tool which should work, but I'm not sure if it's implemented or how to put it in the yaml.
Beta Was this translation helpful? Give feedback.
All reactions