Skip to content

Commit

Permalink
✨ (map) left-align color legend
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Sep 18, 2024
1 parent cea9233 commit a9bc597
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@ourworldindata/grapher/src/mapCharts/MapChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,9 @@ export class MapChart
}

@computed get legendAlign(): HorizontalAlign {
return HorizontalAlign.center
return this.categoryLegend
? HorizontalAlign.left
: HorizontalAlign.center
}

@computed get numericLegendY(): number {
Expand Down

0 comments on commit a9bc597

Please sign in to comment.