Description
When switching between timescales on the analytics page, the colors assigned to series (e.g. model costs) change. For example, Gemini might be purple on one timescale and blue on another.
Expected Behavior
Colors should be stable per series across all timescales. Gemini should always be the same color regardless of which timescale is selected.
Likely Cause
Colors are probably assigned by array index rather than by series name. When the timescale changes, the order of series in the data may shift (e.g. if a model has no data in a shorter range, it drops out and other models shift up), causing colors to rotate.
Fix
Assign colors by series name (a stable mapping) rather than by position.
Description
When switching between timescales on the analytics page, the colors assigned to series (e.g. model costs) change. For example, Gemini might be purple on one timescale and blue on another.
Expected Behavior
Colors should be stable per series across all timescales. Gemini should always be the same color regardless of which timescale is selected.
Likely Cause
Colors are probably assigned by array index rather than by series name. When the timescale changes, the order of series in the data may shift (e.g. if a model has no data in a shorter range, it drops out and other models shift up), causing colors to rotate.
Fix
Assign colors by series name (a stable mapping) rather than by position.