Skip to content

[BUGFIX] Timeserieschart: default query color mode to fixed for all series#753

Open
mixturesolutions wants to merge 2 commits into
perses:mainfrom
mixturesolutions:bug/timeseries-color-settings
Open

[BUGFIX] Timeserieschart: default query color mode to fixed for all series#753
mixturesolutions wants to merge 2 commits into
perses:mainfrom
mixturesolutions:bug/timeseries-color-settings

Conversation

@mixturesolutions

Copy link
Copy Markdown
Contributor

Description

Fixes perses/perses#4204.
When adding a query color setting, the UI defaulted to fixed-single, which only applies the color if the query returns one series. Other query settings (line style, opacity, etc.) always apply to every series from that query, so multi-series queries looked inconsistent: dash/dot applied, but color did not.
This changes the default color mode to fixed, so the configured color applies to all series returned by the query. Users can still select Fixed (single series) when they want the previous behavior.

Screenshots

Before the chart defaults to:
Screenshot 2026-07-24 at 7 55 25 AM

After the pr, chart defaults to:
Screenshot 2026-07-24 at 7 55 43 AM

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

When adding a query color setting, default to "fixed" so the color applies
to every series returned by the query, matching other query settings and
the expected behavior from perses/perses#4204.

Signed-off-by: Iris Ye <iris.ye.cs@gmail.com>
@mixturesolutions
mixturesolutions requested a review from a team as a code owner July 24, 2026 12:57
@mixturesolutions
mixturesolutions requested review from shahrokni and removed request for a team July 24, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TimeseriesChart: query settings color not applied if query return more than one series

1 participant