Help with Statistics Graph Card and displaying values in different colours and as negatives

Hello there,

I’ve been playing with HA for a while now, and it was the Energy Management that got me interested, for a number of reasons. I’m sure, like many, that whilst the default is good… it wasn’t quite what I wanted and so I’m building my own dashboard.

One thing I have is a Statistics Graph Card and it shows various entities from my inverter. However, 2 things I want to change:

  1. The colours of the various lines. I’d actually like to make them the same as the energy card flow plus.
  2. When I show the battery being charged, I’d like to have that as a negative number rather than the default positive. How do I flip that?

many thanks for indulging me.