It would be interesting to modify the card or te panel so that they reacted the same.
Although it has been asked before, I take this opportunity to ask again if it is possible to be able to choose the color of the graph by entity, (even if it is in yaml )