Open Hellis81 opened 3 months ago
I would love to see this feature as well. Use case is to display a graph of temps from my Fireboard BBQ controller. Span would be dynamic, calculated as from the time I last powered on my pellet grill's smart outlet.
Would love to have this as well. Mainly to be able to switch between climate conditions between 2hr,6hr,24hr,7days. I could make multiple graphs and show them conditionally, but that is a lot more cumbersome.
What I need is the span from the 1st of each month to the current date, and this is feasible for me to do.
What I need is the span from the 1st of each month to the current date, and this is feasible for me to do.
You wouldn't need the sensor if templates was possible 😜
I've also just stumbled on a use case where being able to set a dynamic graph_span would be ideal. I've tried all sorts with no success. I have a custom template sensor that increments the number of days from a specific date which I'd like to use as the value for graph_span. Right now it seems like graph_span just will not accept anything but a hand typed value which is disappointing given how flexible everything else is with Apex Charts.
I want to create a line graph that displays the max value of a statistics sensor for each day for up to 1 year from a specific start date where the graph only shows the collected data to date and "extends" and shows more day by day as the year goes on. At the end of the year I'd reset the date sensor back to 1 and let graph_span "shrink" the graph back down to just the collected data to date. It would mean that I can start to see trends and points of interest at a glance on a graph that shows only data collected up to that day on a graph that looks sharp without needing to manually update or modify it.
Checklist
dev
branchIs your feature request related to a problem? Please describe. I want there to be an auto option for graph span or being able to template the span. Example:
So if tomorrows values are in the sensor, include them in the graph, else fill the graph with todays values.
Describe the solution you'd like It would be nice if it could include templates, or if the graph could scale to the data size.
Describe alternatives you've considered I guess I could create two cards and use the conditional card to hide one of them depending on if the sensor includes tomorrow or not.
Additional context