diff --git a/packages/@ourworldindata/grapher/src/axis/Axis.ts b/packages/@ourworldindata/grapher/src/axis/Axis.ts index 443fa0a7c77..19b698928c8 100644 --- a/packages/@ourworldindata/grapher/src/axis/Axis.ts +++ b/packages/@ourworldindata/grapher/src/axis/Axis.ts @@ -526,14 +526,6 @@ export class HorizontalAxis extends AbstractAxis { let xAlign = HorizontalAlign.center const left = x - width / 2 const right = x + width / 2 - if (left < this.rangeMin) { - x = this.rangeMin - xAlign = HorizontalAlign.left - } - if (right > this.rangeMax) { - x = this.rangeMax - xAlign = HorizontalAlign.right - } return { value, formattedValue, diff --git a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx index 2e528a34539..6848a2eecff 100644 --- a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx +++ b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx @@ -1261,4 +1261,4 @@ export class ScatterPlotChart } } } -} +} \ No newline at end of file