kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.07k stars 238 forks source link

Dynamic bounds #1120

Open LoganJFisher opened 3 months ago

LoganJFisher commented 3 months ago

Is there any way (and if not, would you consider adding) to make a graph have bounds that are dynamically determined by the range of values plotted to it?

That is, rather than define upper_bound and lower_bound at fixed values, allow them to automatically change as the entity being plotted adds new data points, such that the upper_bound is always set to the highest value within the number of hours being shown, and the lower_bound is similarly always set to the lowest value within the number of hours being shown.

This would be a massive improvement for me. Thanks.

akloeckner commented 3 months ago

I think, this is the default behavior, if you just do not set the bounds at all?

ildar170975 commented 3 months ago

@LoganJFisher See a comment above: just do NOT define bounds manually, then they will be set automatically.

ildar170975 commented 3 months ago

@LoganJFisher Is the issue resolved?