Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data table count percentage rounding inaccuracy #64939

Closed
kertal opened this issue Apr 30, 2020 · 1 comment · Fixed by #64948
Closed

Data table count percentage rounding inaccuracy #64939

kertal opened this issue Apr 30, 2020 · 1 comment · Fixed by #64948
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@kertal
Copy link
Member

kertal commented Apr 30, 2020

Kibana version:
master, 7.6.2
Describe the bug:

There an issue with Count percentage value rounding in Visualize Data Table. When using the default setting of format:percent:defaultPattern:

Bildschirmfoto 2020-04-30 um 19 52 34

The Count percentage of products priced >= 0 ands < 11 is displayed 14.8%

Bildschirmfoto 2020-04-30 um 19 59 16

Setting it to 0,0.000%, it's displayed 14.800%

Bildschirmfoto 2020-04-30 um 20 01 16

Setting it to 0,0.[00000]%, it's displayed 14.771% , that's what you'd expect when setting it to 0,0.000%

Bildschirmfoto 2020-04-30 um 20 06 57

This is due to internal rounding in UI in combination with the numeral formatter.

  • The number, calculated in the Data Table Vis, is 0.0014771011575239054
  • It's formatted with the numeral based percent formatter and becomes 0.148%
  • Then it's formatted again and becomes 14.8%
@kertal kertal added bug Fixes for quality problems that affect the customer experience Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Apr 30, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants