Skip to content

Commit

Permalink
🐛 (admin) fix color selection for scatters (#4047)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored Oct 10, 2024
1 parent a316baa commit cd1a0c5
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
EntityName,
OwidTableSlugs,
ColorSchemeName,
colorScaleConfigDefaults,
} from "@ourworldindata/types"
import { ComparisonLine } from "../scatterCharts/ComparisonLine"
import { observable, computed, action } from "mobx"
Expand Down Expand Up @@ -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
)
}

Expand Down

0 comments on commit cd1a0c5

Please sign in to comment.