From 30243fddc5c5ea17f5be4dd8459a7a3e0e7c3600 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Mon, 9 Sep 2024 17:48:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20hideLinesOutsideTolerance?= =?UTF-8?q?=20behaviour=20always=20kicking=20in=20instead=20of=20never?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/scatterCharts/ScatterPlotChart.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx index 7772975ade5..772024a2939 100644 --- a/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx +++ b/packages/@ourworldindata/grapher/src/scatterCharts/ScatterPlotChart.tsx @@ -316,21 +316,6 @@ export class ScatterPlotChart // TODO chunk this up into multiple computeds for better performance? @computed get transformedTable(): OwidTable { let table = this.transformedTableFromGrapher - if ( - this.manager.startTime !== undefined && - this.manager.endTime !== undefined - ) { - const entityNames = Array.from( - intersectionOfSets( - [this.manager.startTime, this.manager.endTime].map( - (targetTime) => - table.filterByTargetTimes([targetTime], 0) - .availableEntityNameSet - ) - ) - ) - table = table.filterByEntityNames(entityNames) - } // We don't want to apply this transform when relative mode is also enabled, it has a // sligthly different endpoints logic that drops initial zeroes to avoid DivideByZero error. if (this.compareEndPointsOnly && !this.manager.isRelativeMode) {