Trying to filter Pie chart with minimum unique count of docs

this is unfortunately not possible at the moment, as kibana does not yet support bucket selector pipeline aggregation.