From cd1a0c5dce1bf7dd91fbdc01744d385ebab928b3 Mon Sep 17 00:00:00 2001 From: Sophia Mersmann Date: Thu, 10 Oct 2024 09:02:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(admin)=20fix=20color=20selectio?= =?UTF-8?q?n=20for=20scatters=20(#4047)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grapher/src/scatterCharts/ScatterPlotChart.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx index 93507a6a62c..dd1884c3fdf 100644 --- a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx +++ b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx @@ -9,7 +9,6 @@ import { EntityName, OwidTableSlugs, ColorSchemeName, - colorScaleConfigDefaults, } from "@ourworldindata/types" import { ComparisonLine } from "../scatterCharts/ComparisonLine" import { observable, computed, action } from "mobx" @@ -984,10 +983,8 @@ export class ScatterPlotChart @computed get colorScaleConfig(): ColorScaleConfigDefaults | undefined { return ( - ColorScaleConfig.fromDSL(this.colorColumn.def) ?? { - ...colorScaleConfigDefaults, - ...this.manager.colorScale, - } + ColorScaleConfig.fromDSL(this.colorColumn.def) ?? + this.manager.colorScale ) }