Observable Plot: How to fix the color order?

Hi, all
When I filtered the data, I found that the colors of the same data were rendered first, while some colors were rendered later. How to fix the color order?
Thank you for providing assistance in advance.

It’s hard to tell from a screenshot. In general I’d recommend to create a first chart that gets all the colors, and reuse that chart’s exposed color scale in the other charts.

I delved deeper and found that I can generate an array of data to be drawn, which can fix the order of colors. Thank you very much.