Display piechart

Hi, I'm trying to display pie chart,
but little guide for me, so I'm asking your help.

I built up elasticsearch index as follows

I want this data for '202105'


display pie chart : 4 areas
apple & grape => color:blue
banana&orange => color:grey

I'm tried to find for this solution, but I can't. Please help me!

Thanks in advance.

You probably want something like this;
Screen Shot 2021-05-20 at 13.09.36

And then add another single filter for the other two fruits to group them

Thanks for your help.

I think result is ok.
but fruit's name are displayed (4 kinds) in pie charts.

if the data adds as below


the pie charts displays same result for yymm:'202105' and group:fruit for 4 section

if the condition are changed yymm:202106 and grou:vegetable => display 2 section and they filled color by 'gray' (sold:N)

I mean sold items are filled by blue, and not sold items are filled by gray.
And all items are displayed or regended for specific condition.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.