Set min, max value of Y-axis on graphs

If I want to display a dataset that’s in a discrete range then a dynamically set Y-axis can make the reading hard. Therefore I would like to set an (optional) min, and max value for the Y-axis.

E.g.: on a page where I am only battery percentage graphs the natural conclusion is that: if the line is near the bottom, the value should be near 0% and on the top should be 100%. And this is a cognitive load to check the Y-axis to correct the scale in the mind.
(FYI: this is a marketing tool also, where the creator takes advantage of the mind’s laziness to enlarge a small difference.)

Workaround:
I can create template sensors (or number helpers) to create constant 0% and 100% values that I can add to this type of graph.
…but I don’t want to see 1) these entries in the legend 2) nor don’t want to see the constant lines on the graph.

I think this feature is useful for history-graph and statistics-graph too.

Try apexcharts or plotly …these have this option and many MANY more
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjYwYa-8ev7AhXyUKQEHSIRD-kQFnoECBYQAQ&url=https%3A%2F%2Fgithub.com%2FRomRider%2Fapexcharts-card&usg=AOvVaw0TNuzJ0Tzi9lcuEFR9Sz7j

Plotly interactive Graph Card - Share your Projects! / Dashboards & Frontend - Home Assistant Community (home-assistant.io)

1 Like

Good heavens! Those other charting plugins are amazing!

That said, I would argue that András’ use case (wanting of visual indication of how near the minimum or maximum capacity an entity’s value is) is fairly common, and it would be a nice feature if the stock history card included support for “min” and “max” Y values.

3 Likes