I should change the size of this mini-graph-card, but I can’t, I tried with
styles:
card:
height: 140px
weight: 134px
I should change the size of this mini-graph-card, but I can’t, I tried with
styles:
card:
height: 140px
weight: 134px
Have you checked the docs?
I have no clue what weight
is.
height
works perfectly well but needs to be a number (no px
at the end). For example:
- type: custom:mini-graph-card
height: 150
entities:
- sensor.<sensor_name>
[quote=“jchh, post:2, topic:640154”]
I have no clue what weight
is.
height
works perfectly well but needs to be a number (no px
at the end). For example:
[/quote
Tank you
I tried as you say, the height works but the width doesn’t work.
I would likes to create a square mini-graph card
type: custom:mini-graph-card
height: 140
width: 134
border: 1 solid rgb(51,51,51)
border-radius: 5
entities:
- entity: sensor.camera_t_h_temperature
show_points: false
name: T. Camera
line_width: 10
line_color: orange
points_per_hour: 2
hours_to_show: 4
animate: true
card_mod:
style: |
.graph .graph__container .graph__container__svg svg g mask .line {
animation-duration: 5s !important;
animation-delay: 0s !important;
animation-timing-function: linear !important;
animation-iteration-count: infinite !important;
}
There is no ‘width’ option.
Please read the docs, I posted the link above,
It is not possible to insert the mini-graph-card inside a button card to change its size?
It works if you put it in a Vertical stack Card, also if you put it in as a single object