diff --git a/packages/@ourworldindata/grapher/src/stackedCharts/MarimekkoChart.tsx b/packages/@ourworldindata/grapher/src/stackedCharts/MarimekkoChart.tsx index de44bc0db73..cf1b21edc9d 100644 --- a/packages/@ourworldindata/grapher/src/stackedCharts/MarimekkoChart.tsx +++ b/packages/@ourworldindata/grapher/src/stackedCharts/MarimekkoChart.tsx @@ -52,6 +52,7 @@ import { TooltipValue, TooltipState, makeTooltipRoundingNotice, + makeTooltipToleranceNotice, } from "../tooltip/Tooltip" import { HorizontalCategoricalColorLegend, @@ -992,7 +993,10 @@ export class MarimekkoChart ? timeColumn.formatValue(endTime) : undefined const toleranceNotice = targetNotice - ? { icon: TooltipFooterIcon.notice, text: targetNotice } + ? { + icon: TooltipFooterIcon.notice, + text: makeTooltipToleranceNotice(targetNotice), + } : undefined const columns = excludeUndefined([xColumn, yColumn]) diff --git a/packages/@ourworldindata/grapher/src/stackedCharts/StackedDiscreteBarChart.tsx b/packages/@ourworldindata/grapher/src/stackedCharts/StackedDiscreteBarChart.tsx index e2120575f46..045b689bf47 100644 --- a/packages/@ourworldindata/grapher/src/stackedCharts/StackedDiscreteBarChart.tsx +++ b/packages/@ourworldindata/grapher/src/stackedCharts/StackedDiscreteBarChart.tsx @@ -56,6 +56,7 @@ import { TooltipState, TooltipTable, makeTooltipRoundingNotice, + makeTooltipToleranceNotice, } from "../tooltip/Tooltip" import { StackedPoint, StackedSeries } from "./StackedConstants" import { ColorSchemes } from "../color/ColorSchemes" @@ -813,7 +814,10 @@ export class StackedDiscreteBarChart : undefined const toleranceNotice = targetNotice - ? { icon: TooltipFooterIcon.notice, text: targetNotice } + ? { + icon: TooltipFooterIcon.notice, + text: makeTooltipToleranceNotice(targetNotice), + } : undefined const roundingNotice = this.formatColumn.roundsToSignificantFigures ? {