From 28e729b835d8195f3610f7131504441803e43406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Minh=20Qu=C3=A2n?= Date: Wed, 9 Feb 2022 11:30:20 +0700 Subject: [PATCH] fix(histogram): display correct percentile value instead of formula (#18084) Co-authored-by: quanhm --- .../plugins/legacy-plugin-chart-histogram/src/Histogram.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset-frontend/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx b/superset-frontend/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx index b231b0ae6e..518272afdf 100644 --- a/superset-frontend/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx +++ b/superset-frontend/plugins/legacy-plugin-chart-histogram/src/Histogram.jsx @@ -122,7 +122,10 @@ class CustomHistogram extends React.PureComponent {
{t('percentile (exclusive)')} - {`{((datum.cumulativeDensity - datum.density) * 100).toPrecision(4)}th`} + {`${( + (datum.cumulativeDensity - datum.density) * + 100 + ).toPrecision(4)}th`}
)}