You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2023/03/31 05:02:01 UTC
[superset] branch master updated: fix(area chart legacy): tool tip shows actual value rather than y axi… (#23469)
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 <ak...@zemosolabs.com>
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>';
});