From db9ca20737fecda8eee342b34d62d3b700ef3687 Mon Sep 17 00:00:00 2001 From: akashboora Date: Fri, 31 Mar 2023 10:31:53 +0530 Subject: [PATCH] =?UTF-8?q?fix(area=20chart=20legacy):=20tool=20tip=20show?= =?UTF-8?q?s=20actual=20value=20rather=20than=20y=20axi=E2=80=A6=20(#23469?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superset-frontend/plugins/legacy-preset-chart-nvd3/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/utils.js b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/utils.js index 344388fffd7ca..39b42525af459 100644 --- a/superset-frontend/plugins/legacy-preset-chart-nvd3/src/utils.js +++ b/superset-frontend/plugins/legacy-preset-chart-nvd3/src/utils.js @@ -203,7 +203,7 @@ export function generateAreaChartTooltipContent( series.key === 'TOTAL' ? '' : '◼' }` + `${key}` + - `${valueFormatter(series.value)}` + + `${valueFormatter(series?.point?.y)}` + `${((100 * series.value) / total).toFixed(2)}%` + ''; });