Ziyang did and amazing job adding the sorting indices to guarantee that ordinal variables (e.g., month, day) always appear in a consistent order. We just need a couple other fixes related to this functionality.
Todo
There's also the question of whether each model should get a consistent color from the time the user adds it to the time they remove it. The difficulty with this is that if I add three models and remove the first one, the sort index approach would reassign the colors of the second and third models added. I'm not sure this is a big enough deal to fuss with custom color scales in Vega.
Ziyang did and amazing job adding the sorting indices to guarantee that ordinal variables (e.g., month, day) always appear in a consistent order. We just need a couple other fixes related to this functionality.
Todo
There's also the question of whether each model should get a consistent color from the time the user adds it to the time they remove it. The difficulty with this is that if I add three models and remove the first one, the sort index approach would reassign the colors of the second and third models added. I'm not sure this is a big enough deal to fuss with custom color scales in Vega.