-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Pie chart doesn't correctly calculate sub-sub-aggregation counts #50993
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Hi, could you please share what sizes you configured for the terms aggregation on each level? The percentage will be calculated of the values present in the chart. This doesn’t necessarily always need to add up to 100% of the value on one level higher, since it might be that e.g. the top 3 terms are not all terms that were part of level 1. So if level 1 would have a value of 1000, and you select show top 3 in the next level, and each of them is 200, you will still see 33% for each of those outer slices even though they are not summing up to 1000, but they are each 33% of the values available in that layer. Cheers, |
Hello, In my test I updated the terms aggregation to 20 on each level. With the data that I was using this would have accounted for all possibilities. I also tried checking the add Other data and Missed data to make sure everything was accounted for. I am not sure if there is a hard limit on how many slices can occur per level, but it still didn't add up correctly. Thanks for the help, |
Hi, could you perhaps go to "Inspect" (on a dashboard in the panel menu, in visualize editor in the top menu) and copy the request and response that you'll find in the "Requests" view? Cheers, |
Doesn't looks great in the "code block" let me know if you would like it in another form. Request
Response
|
Kibana version:
7.2.0
Elasticsearch version:
7.2.0
Server OS version:
CentOS 7.6.1810
Browser version:
Chrome 78.0.3904.97 64-bit
Browser OS version:
MacOS 10.14.6
Original install method (e.g. download page, yum, from source, etc.):
yum
Describe the bug:
When creating pie charts that are sliced multiple times it appears the counts and percentages no longer get calculated correctly. When slicing a chart twice, as seen below, everything works as intended. The counts in the outer rings all add up to the inner ring. Once you add another slice operation to the chart, however, the sums are thrown off.
Steps to reproduce:
Expected behavior:
Should show the counts correctly per sub-aggregate that is added. The first slice would be the totals with the second slice showing the sub-counts of the previous slice. So if the first ring had 4000 in one slice and the second ring has 4 sections with each count of 1000. The final ring might show 2 slices with count 500 per each of the 1000 count slices in the previous ring.
Screenshots (if relevant):
2-slice Version:
4-slice Version:
Errors in browser console (if relevant):
N/A
Provide logs and/or server output (if relevant):
N/A
Any additional context:
The text was updated successfully, but these errors were encountered: