Skip to content

Commit

Permalink
StatsHouse UI: update enable server color
Browse files Browse the repository at this point in the history
  • Loading branch information
vauweb committed Nov 6, 2024
1 parent fea8460 commit b991aa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function normalizePlotData(
const metricName = isValue ? `${meta.name || (plot.metricName !== promQLMetric ? plot.metricName : '')}: ` : '';
const colorKey = `${prefColor}${metricName}${oneGraph ? label : baseLabel}`;
// client select color line
const baseColor = /*meta.color ?? */ baseColors[colorKey] ?? selectColor(colorKey, usedBaseColors);
const baseColor = meta.color ?? baseColors[colorKey] ?? selectColor(colorKey, usedBaseColors);
baseColors[colorKey] = baseColor;
// if (baseColor !== currentPrevSeries[indexMeta]?.stroke) {
// changeColor = true;
Expand Down

0 comments on commit b991aa6

Please sign in to comment.