apexcharts-card: Y axis not scaling correctly
Checklist
- I updated the card to the latest version available
- I cleared the cache of my browser
- I verified that I’m really running the lastest version in my browser console
- I checked if there is another issue opened with the same problem
Describe the bug In some of my charts the data goes out-of-bounds because the y-axis is not scaling to the lowest point in the data series.
Version of the card Version: 2.1.2
To Reproduce This is the configuration I used: Example #1
type: custom:apexcharts-card
graph_span: 48h
header:
show: true
title: Kælder
show_states: true
series:
- entity: sensor.basement_wall_sensor_humidity
type: line
unit: '%'
show:
name_in_header: false
Example #2
type: custom:apexcharts-card
graph_span: 48h
header:
show: true
title: Toilet
show_states: true
series:
- entity: sensor.toilet_wall_sensor_temperature
type: line
unit: °C
show:
name_in_header: false
Screenshots
Example #1
Example #2
Expected behavior I expect the y-axis to scale correctly according to highest and lowest value of data
Desktop (please complete the following information): Version 128.0.6613.85 (Official Build) (64-bit)
Smartphone (please complete the following information):
- Device: iPhone12]
- OS: iOS 17.6.1
- Browser Stock Safari
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 19
I have a similar issue, which I reported, but it was just closed without any comment or explanation. max: auto Used to work and still does in earlier versions, but in this version, only an actual value works, but the value max, I just end up with a value of 10 irrespective of what it should be. Actually to go further, if you set max: (anything other than a number) you get the value 10).
I have tried this on a new build of Home Assistant still no joy, the last version that works correctly is v2.0.4
I have spent 2 complete days messing about this issue. I have built two separate Home Assitant installs on separate RPI’s one with the previous version of the Apex Charts and one with the up to date version. In both instances the way that they work is entirely different. I have tried many different ways of assembling the code in the latest version and NONE of them work properly. The old version seems to work flawlessly, so unless someone can fix the issues in v2.1.2, I will stick with v2.0.4.
Thanks for reading this.
On Tue, 24 Dec 2024 at 02:34, github-actions[bot] @.***> wrote:
Thank you, my chart issue is #780. I had looked at that issue and thought that it wasn’t, but now I have pasted the YAML for my chart above, I can see that I am using in_chart: false for one of my series