Skip to content

Data table count percentage rounding inaccuracy #64939

@kertal

Description

@kertal

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%

Metadata

Metadata

Assignees

Labels

Feature:Data TableData table visualization featureTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions