How to set a height for “history-graph”
code
type: vertical-stack
cards:
- type: history-graph
entities:
- entity: sensor.processor_use
hours_to_show: 6
- type: history-graph
entities:
- entity: sensor.processor_use
hours_to_show: 6
card_mod:
style:
state-history-charts $:
state-history-chart-line $:
ha-chart-base $: |
.chart-container {
height: 100px !important;
}
- type: history-graph
entities:
- entity: sensor.processor_use
hours_to_show: 6
card_mod:
style:
state-history-charts $:
state-history-chart-line $:
ha-chart-base $: |
.chart-container {
height: 300px !important;
}
Tested in HA 2023.11.2, Chrome 119.0.6045.160 (Win10x64), FF 119 (Win10x64).
Does not work in iOS Companion App (iOS 15.x).