Skip to content

[Bug]: Chart series colors are nearly indistinguishable with multiple nodes #830

Closed

Description

@1amirhoseiin1

Before you submit

  • I searched existing issues and did not find the same problem.
  • I am using the latest available PasarGuard version, or I included the exact version below.

PasarGuard version

v5.3.0

Installation type

Docker

What happened?

After updating to v5.3.0, every series in the Statistics charts renders in a
nearly identical shade of blue/grey. With 5 nodes configured, it is not
possible to tell which series belongs to which node without hovering over
each one individually.

This affects all charts on the Statistics page:

  • "Total traffic usage across all servers" (both stacked bar and area view)
  • Subscription Client Distribution pie chart

The cause appears to be that series colors are derived from theme variables:

--color-Node1: hsl(var(--primary));
--color-Node2: hsl(var(--chart-2));
--color-Node3: hsl(var(--chart-3));
--color-Node4: hsl(var(--chart-4));
--color-Node5: hsl(var(--chart-5));

Since --chart-2 through --chart-5 are all close shades of the primary color,
the resulting palette has almost no hue separation. This is acceptable with
2 series, but the charts become unreadable with 4 or more nodes.

Before the update the palette had distinct colors per node.

Steps to reproduce

  1. Configure 4 or more nodes in the panel.
  2. Go to Dashboard → Statistics.
  3. In "Total traffic usage across all servers", select the "1w" range.
  4. Observe the stacked bar chart and its legend.
  5. All series appear in near-identical shades; the legend swatches are not
    distinguishable from one another.

Expected behavior

Chart series should use a palette with distinct hues so that each node
remains visually separable at a glance, without needing to hover.

Either the --chart-* theme variables should be spread across the hue wheel
rather than being shades of a single color, or the chart color generator
should assign hues by index independently of the primary theme color.

Logs and error messages

No errors in the browser console. This is a purely visual/styling issue,
not a runtime failure.

Computed CSS on the chart container (from DevTools):

[data-chart=chart-_r_6s_] {
  --color-Node1: hsl(var(--primary));
  --color-Node2: hsl(var(--chart-2));
  --color-Node3: hsl(var(--chart-3));
  --color-Node4: hsl(var(--chart-4));
  --color-Node5: hsl(var(--chart-5));
}

.dark [data-chart=chart-_r_6s_] {
  (identical values)
}

Environment

  • Panel version: v5.3.0
  • Installation: Docker
  • Browsers tested: Chrome (desktop, Windows) and Safari (iOS) — identical result
  • Theme: dark mode
  • Number of nodes: 5

Relevant configuration

No custom theme or CSS overrides applied. Default panel styling.

Screenshots or videos

Image Image Image Image

Additional context

No response

Activity

  1. added
    bug
    on Aug 31, 2026
  2. 1amirhoseiin1 commented on Sep 2, 2026

    @1amirhoseiin1
    Author

    Additional data point: changing the accent color in Settings → Theme does not
    help.

    Every accent produces the same problem in a different hue — with Orange all
    five node series become shades of orange, with Violet all five become shades
    of violet. The number of visually distinguishable series stays the same
    regardless of the theme; only the hue family changes.

    This suggests the issue isn't the specific default palette but the color
    generation itself: all series are derived from a single accent color, so with
    4+ nodes they will always collapse into one hue family no matter what the user
    picks.

    Image Image
  3. dr-hoseyn commented on Sep 27, 2026

    @dr-hoseyn
    Contributor

    done

  4. T3ST3ST3R0N commented on Oct 8, 2026

    @T3ST3ST3R0N
    Collaborator

    Fixed by #952 (thanks @dr-hoseyn), which is now merged into dev and will ship in the next release. Thank you @1amirhoseiin1 for the report and the accent colour detail, it pinpointed the cause. Closing; please reopen if the colours still look wrong after updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions