-
Hey! Loving the Ploty Graph Card! I have added a card to show my solar production and grid consumption per day and would like to add average data for the week/month. My average data is looking skewed as it's including today's information (which is not yet complete). How would I exclude today's data from the calculations? I assume it's as simple as applying a filter. Thanks in advance! code: type: custom:plotly-graph
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Happy to hear! |
Beta Was this translation helpful? Give feedback.
-
Thanks David! I added this but it doesn't make any change to the data. I must be doing it incorrectly.
|
Beta Was this translation helpful? Give feedback.
Happy to hear!
Yes, there's a filter called "filter", you can pass it
i<xs.length-1
and that will remove the last datapoint