RomRider / apexcharts-card

📈 A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant
MIT License
1.16k stars 78 forks source link

auto y-axis scale with hard maximum #644

Closed JohannCR closed 7 months ago

JohannCR commented 9 months ago

Checklist

Is your feature request related to a problem? Please describe. Trying to define a maximum y axis value for a plot that sometimes has low values and sometimes very high values. With max: 3000 or max: ~3000 for exemple, the y-axis is always cut at 3000 even when the current max value displayed is say 500.

Describe the solution you'd like Either an "auto" mode with a hard max (meaning the plot scales to the maximum value, but no higher than 3000 for example), or a way to define a max that is the minimum between max value and a fixed value like max: min(3000, max)

Describe alternatives you've considered Tried max: 3000, max:~3000, max: auto and also apex_config. But I didn't know how to try apex_config with a min(3000, max) function (is that doable ?)

Additional context

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] commented 7 months ago

This issue was closed because it has been stalled for 10 days with no activity.