Skip to content

Commit

Permalink
fix histogram percentile value not displaying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
quanhm committed Jan 19, 2022
1 parent 8dea7f5 commit f6bae39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions superset-frontend/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ CHANGELOG.md
*-topo.json
temporary_superset_ui/
storybook-static/
plugins/legacy-plugins-chart-histogram/src/Histogram.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ 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 f6bae39

Please sign in to comment.