Skip to content

Commit b991aa6

Browse files
committed
StatsHouse UI: update enable server color
1 parent fea8460 commit b991aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statshouse-ui/src/store2/plotDataStore/normalizePlotData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export function normalizePlotData(
170170
const metricName = isValue ? `${meta.name || (plot.metricName !== promQLMetric ? plot.metricName : '')}: ` : '';
171171
const colorKey = `${prefColor}${metricName}${oneGraph ? label : baseLabel}`;
172172
// client select color line
173-
const baseColor = /*meta.color ?? */ baseColors[colorKey] ?? selectColor(colorKey, usedBaseColors);
173+
const baseColor = meta.color ?? baseColors[colorKey] ?? selectColor(colorKey, usedBaseColors);
174174
baseColors[colorKey] = baseColor;
175175
// if (baseColor !== currentPrevSeries[indexMeta]?.stroke) {
176176
// changeColor = true;

0 commit comments

Comments
 (0)