This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new db9ca20737 fix(area chart legacy): tool tip shows actual value rather
than y axi… (#23469)
db9ca20737 is described below
commit db9ca20737fecda8eee342b34d62d3b700ef3687
Author: akashboora <[email protected]>
AuthorDate: Fri Mar 31 10:31:53 2023 +0530
fix(area chart legacy): tool tip shows actual value rather than y axi…
(#23469)
---
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 344388fffd..39b42525af 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' ? '' : '◼'
}</td>` +
`<td>${key}</td>` +
- `<td>${valueFormatter(series.value)}</td>` +
+ `<td>${valueFormatter(series?.point?.y)}</td>` +
`<td>${((100 * series.value) / total).toFixed(2)}%</td>` +
'</tr>';
});