Our issue is,
In your application file if we select A,B then chart should display three buckets in pie those are A,B,'Others' , in which others will contain C's and D's values (excluded values)
Sorry I have not provided the complete requirement.
Thanks for quick response. Your sample application is working fine if only single product is selected. But its not working if multiple product are selected.
Like if 2 products are selected A and B, then there should be 3 groups. A, B and Others.
Is there any way to do this.