Graph suggestion

See my response to your cross-post here: Lovelace: mini graph card - #2360 by ukro.

TL;DR: Use Apex Charts.