From c88906113abb516e1ef1db4aa1ae17d4e059180b Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Wed, 4 Dec 2024 09:11:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(slope)=20hide=20the=20No=20Data?= =?UTF-8?q?=20section=20for=20svg=20exports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx b/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx index 1fac048d8d9..e5d6ce8b54d 100644 --- a/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx +++ b/packages/@ourworldindata/grapher/src/slopeCharts/SlopeChart.tsx @@ -427,6 +427,9 @@ export class SlopeChart // nothing to show if there are no series with missing data if (this.noDataSeries.length === 0) return false + // the No Data section is HTML and won't show up in the SVG export + if (this.manager.isStatic) return false + // we usually don't show the no data section if columns are plotted // (since columns don't appear in the entity selector there is no need // to explain that a column is missing – it just adds noise). but if