From 5496cb1f16893436da16f02e134ecca57c9d1986 Mon Sep 17 00:00:00 2001 From: Megan Thomas Date: Mon, 30 Sep 2024 01:10:48 -0700 Subject: [PATCH] MWPW-159236 Fix duplicate percent in donut chart tooltip (#2968) --- libs/blocks/chart/chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/blocks/chart/chart.js b/libs/blocks/chart/chart.js index 295e9b52a6..bfadbbe607 100644 --- a/libs/blocks/chart/chart.js +++ b/libs/blocks/chart/chart.js @@ -163,7 +163,7 @@ export const donutTooltipFormatter = ({ name, percent, } = {}, unit = '') => ( - `${marker} ${name}
${data[value[0]]}${unit} ${percent}%` + `${marker} ${name}
${data[value[0]]}${unit}${unit !== '%' ? ` ${percent}%` : ''}` ); export const pieTooltipFormatter = ({