Skip to content

Commit

Permalink
fix(histogram): display correct percentile value instead of formula (#…
Browse files Browse the repository at this point in the history
…18084)

Co-authored-by: quanhm <quanhm@vng.com.vn>
  • Loading branch information
hoangminhquan-lhsdt and quanhm authored Feb 9, 2022
1 parent e86f6bb commit 28e729b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)}
Expand Down

0 comments on commit 28e729b

Please sign in to comment.