apexcharts-card: Doesn't support layout_options option in sections panel (Home Assistant v2024.7)
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 sections view(Home Assistant v2024.7), cards could be resized link, even custom cards(such as custom:webrtc-camera). But apexcharts-card show error if i wrote any other options.
Version of the card Version: v2.1.2
To Reproduce This is the configuration I used:
type: custom:apexcharts-card
update_interval: 1min
header:
....
yaxis:
....
series:
- entity: sensor.xxx
layout_options:
grid_columns: 4
grid_rows: 4
Screenshots
Expected behavior
Support layout_option option
Desktop (please complete the following information):
- Browser [Microsoft Edge]
- Version [125.0.2535.85]
Smartphone (please complete the following information): no
Additional context no
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 12
- Comments: 15 (1 by maintainers)
For me it seems to work with a fixed height:
You can disable the config validation:
I’ll update the code to make it possible to use that option without disabling the config validation
Hi, are you planning for fix, so we don’t need to use “disable_config_validation: true”?
I figured out a solution that works for me.
You wrap it in a horizontal stack.
When I use the layout options, the card seems to always want to keep the aspect ratio. I.e. when it make the card wider, it also becomes higher. What is the right way to fix that?
layout_options.grid_columnsworks, butlayout_options.grid_rowsnot works, maybe the card has a fixed height?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.
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.
The new sections configuration is out of experimental - https://www.home-assistant.io/blog/2024/11/06/release-202411/#sections-dashboard-no-longer-experimental
There is a new top level
grid_optionskey that apexcharts-card currently does not support, for example:For now, setting config validation off allows it to be set.
So how to handle this with the new section view in HA?