-
Notifications
You must be signed in to change notification settings - Fork 35
Bug: Analytics chart colors change when switching timescales #610
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working