fix(histogram): display correct percentile value instead of formula (#18084)

Co-authored-by: quanhm <quanhm@vng.com.vn>
This commit is contained in:
Hoàng Minh Quân 2022-02-09 11:30:20 +07:00 committed by GitHub
parent e86f6bbabc
commit 28e729b835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ class CustomHistogram extends React.PureComponent {
</div>
<div>
<strong>{t('percentile (exclusive)')} </strong>
{`{((datum.cumulativeDensity - datum.density) * 100).toPrecision(4)}th`}
{`${(
(datum.cumulativeDensity - datum.density) *
100
).toPrecision(4)}th`}
</div>
</div>
)}