#Customise statistics by colour

1 messages · Page 1 of 1 (latest)

inner raptor
#

I would like to change the bar and display it in a different colour. I can't find an entry for the yamel in the documentation.

inner raptor
#

Is it even possible to colour them? Because I have seen pictures where others have managed it.

zealous wren
#
  style: |
    ha-card {
        --graph-color-1: yellow;
        }
#

You can also play around with themes.. but tbh I prefer card-mod most of the time as it's easier to fiddle

inner raptor
#

Card Mod? Do you mean an add-on?

zealous wren
#

yes, you can get it from HACS

inner raptor
#

is that exactly the name of HACS?

zealous wren
#

I can't view your locally hosted HA page ^^

inner raptor
#

In any case, it worked 😄

#

I wonder if you can colour it according to certain properties?

zealous wren
#

you can use templates within card-mod, so to a point, sure

inner raptor
#

For example, I can now see when I have used solar power and when I have used grid power.

zealous wren
#

you'd probably need to have 2 data series if you want to do that

inner raptor
#

What do you mean?

zealous wren
#

if you want to colour the bars differently for different power sources

inner raptor
#

No. I mean it is supposed to be a power source, but from the colour I can see when it was supplied with PV power and when with grid power

zealous wren
#

ok, well good luck

inner raptor
#

why?

zealous wren
#

cos i ain't got a clue what you're trying to do