From b3851ffba703b530f6e5560a7b03355bdabe0d3f Mon Sep 17 00:00:00 2001 From: Sophia Mersmann Date: Mon, 13 Jan 2025 15:48:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20disable=20'nice'=20ticks=20when=20f?= =?UTF-8?q?acetted=20by=20metric?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@ourworldindata/grapher/src/facetChart/FacetChart.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/facetChart/FacetChart.tsx b/packages/@ourworldindata/grapher/src/facetChart/FacetChart.tsx index e66b7faa5b..4ed977e511 100644 --- a/packages/@ourworldindata/grapher/src/facetChart/FacetChart.tsx +++ b/packages/@ourworldindata/grapher/src/facetChart/FacetChart.tsx @@ -280,8 +280,7 @@ export class FacetChart // We infer that the user cares about the trend if the axis is not uniform // and the metrics on all facets are the same - const careAboutTrend = - !this.uniformYAxis && this.facetStrategy === FacetStrategy.entity + const careAboutTrend = !this.uniformYAxis if (careAboutTrend) { // Force disable nice axes if we care about the trend, // because nice axes misrepresent trends.