diff --git a/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx b/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx index 40dfda10f25..a08cb4cc1e7 100755 --- a/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx +++ b/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx @@ -157,14 +157,13 @@ export const GraphNG: React.FC = ({ builder.addSeries({ scaleKey, drawStyle: customConfig.drawStyle!, - lineColor: seriesColor, + lineColor: customConfig.lineColor ?? seriesColor, lineWidth: customConfig.lineWidth, lineInterpolation: customConfig.lineInterpolation, showPoints, pointSize: customConfig.pointSize, - pointColor: seriesColor, + pointColor: customConfig.pointColor ?? seriesColor, fillOpacity: customConfig.fillOpacity, - fillColor: seriesColor, spanNulls: customConfig.spanNulls || false, }); diff --git a/packages/grafana-ui/src/components/uPlot/config/UPlotSeriesBuilder.ts b/packages/grafana-ui/src/components/uPlot/config/UPlotSeriesBuilder.ts index a014754fe37..423e1aca77f 100755 --- a/packages/grafana-ui/src/components/uPlot/config/UPlotSeriesBuilder.ts +++ b/packages/grafana-ui/src/components/uPlot/config/UPlotSeriesBuilder.ts @@ -81,9 +81,11 @@ export class UPlotSeriesBuilder extends PlotConfigBuilder { } if (fillOpacityNumber !== 0) { - fillConfig.fill = tinycolor(fillColor ?? lineColor) - .setAlpha(fillOpacityNumber / 100) - .toRgbString(); + fillConfig = { + fill: tinycolor(fillColor ?? lineColor) + .setAlpha(fillOpacityNumber / 100) + .toRgbString(), + }; } return {