Graphs: ability to set the Y-axis scale (min / max)

Hello everyone,

The need
Today, the vertical scale (Y-axis) of the graphs is always automatic: it starts from the highest displayed value.
When there is a large spike, the rest of the graph becomes « flat » and you can no longer see the small daily variations.

Concrete example with Veolia integration (water): a day at 800 L due to a leak or a pool filling, and the normal days at 150 L look like small lines.
The problem is the same for gas, electricity, temperature…

What I propose

  1. Dashboard « Chart » box: an option « Y-axis scale »
    • Automatic (as today, by default)
    • Manual: a minimum and/or maximum to enter
  2. External integration widgets (SDK): two optional fields on the chart component, for example y_min and y_max.
    An integration could then offer this setting in the parameters of its widget.

Why this is not feasible on the integration side
The chart component of the SDK has no scale setting (« zero styling »), and the Chart box only has the option « Show axes ».
The only solution on the integration side would be to cut off values above a threshold, which would distort the graph.

Technical side
ApexCharts already knows how to do this with yaxis.min and yaxis.max. The change should therefore remain small.
A value above the max could simply be cut off at the top of the graph, as ApexCharts does by default.

Thanks! :slightly_smiling_face: