Weird behavior for uneven distributed pie charts #19490
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:ElasticCharts
Issues related to the elastic-charts library
Feature:Pie Chart
Pie chart visualization feature
still valid?
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
If you have a pie chart, that has a very uneven distribution, i.e. very large and very slow slices and spare data on an outer level (at least I think that will be the cause), the chart drawing is behaving unpredictable.
Use the following sample data: data.zip
Installation instructions
If you now create a chart, with the following configuration:
group.keyword
(desc, size 5)city:tokyo
city:Osaka
city:nara
After hitting apply I sometimes end up with the following chart:
That chart looks not like what I would expect looking at the data:
Actually G1 is the lowest value in the inner circle, but it gets a slice that takes around 99% of the inner circle. It seems the chart does strip away those other slices because they don't have a value on the outer circle. Also if you hover over the inner circle, you see that
G1
actually only has a percentage of 0.03% on that chart, but still it's slice is the only visible.Sometimes a resizing of the chart (e.g. in the below animation, by opening the dev tools and closing them again) helps to get the "correct" result. This is the way we would expect the inner level of the pie chart to look like. The outer level actually vanished because all it's slices having a subpixel size, which is issue #16931:
The text was updated successfully, but these errors were encountered: