From 07105b7a84faf6f2e45474a8cf3f82b42a2412ef Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 20 Nov 2024 17:00:11 +0000 Subject: [PATCH] fix(data-warehouse): Fix custom series colors in chart tooltips (#26310) --- .../nodes/DataVisualization/Components/Charts/LineGraph.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/queries/nodes/DataVisualization/Components/Charts/LineGraph.tsx b/frontend/src/queries/nodes/DataVisualization/Components/Charts/LineGraph.tsx index 55946477d94..1f00712833e 100644 --- a/frontend/src/queries/nodes/DataVisualization/Components/Charts/LineGraph.tsx +++ b/frontend/src/queries/nodes/DataVisualization/Components/Charts/LineGraph.tsx @@ -348,7 +348,9 @@ export const LineGraph = (): JSX.Element => { }, ]} uppercaseHeader={false} - rowRibbonColor={(_datum, index) => getSeriesColor(index)} + rowRibbonColor={(_datum, index) => + ySeriesData[index]?.settings?.display?.color ?? getSeriesColor(index) + } showHeader />