Statistics graph card stacked bar coloring issue

Hi, running HA 2026.5.4. browser used is MS Edge 149.0.4022.52 on a win11 box.
i noticed a strange coloring issue when using statistics graph, stacked bar.
the first version works, if i swap the two sensors for the second graph to assign the color differently it renders them unexpected.
the base card code:

chart_type: bar-stack
period: hour
type: statistics-graph
entities:
  - sensor.pvm_gen_am
  - sensor.pvm_gen_pm
stat_types:
  - max

am i doing something wrong?

Does pressing F5 fix the glitch?

Note that 2026.6 allows to set a color manually.

@rwasol8 @Ildar_Gabdullin

Hi, no F5 does not fix this.

thanks for the link, i will try it, looks interesting!