Skip to content

Commit

Permalink
🐛 (marimmeko) do not apply tolerance twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Apr 15, 2024
1 parent ebbd0eb commit 2e8bf1a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -780,16 +780,14 @@ export class Grapher
table.get(this.mapColumnSlug).tolerance
)

if (
this.isDiscreteBar ||
this.isLineChartThatTurnedIntoDiscreteBar ||
this.isMarimekko
)
if (this.isDiscreteBar || this.isLineChartThatTurnedIntoDiscreteBar)
return table.filterByTargetTimes(
[endTime],
table.get(this.yColumnSlugs[0]).tolerance
)

if (this.isMarimekko) return table.filterByTargetTimes([endTime])

if (this.isSlopeChart)
return table.filterByTargetTimes([startTime, endTime])

Expand Down

0 comments on commit 2e8bf1a

Please sign in to comment.