25
Views
3
Comments
Solved
Dropdown Tag with filtering Pie Chart
Application Type
Reactive

Hi Community,

I got a Dropdown Tags and Pie Chart.

So the requirement is when the user selects any tags like status the Pie chart must get filter and display only the selected tags data in pie chart. Is it possible to do like that.

I have shared the .oml file it will be great if someone form community would help me in solving this issue or you'll can even change in the .oml file.

DropdownTagsDemo.oml
2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

Hello Vin J,

Pie chart is used to display summary like number of orders for each status so you will need to create new aggregate that fetch count of orders grouped by status. The list returned from this new aggregate will be assigned as source to Pie chart.

In this new aggregate you will need to add filter based on selected status on dropdown tag and we will implement this as comma separated text and check if  id of each status included into this text or not.

Kindly find attached oml with changes I implemented

DropdownTagsDemo_Updated.oml
UserImage.jpg
VinayJangam

Hi Mostafa,

Thank you it worked for me.


Regards,

Vin J

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

Hello Vin J,

Pie chart is used to display summary like number of orders for each status so you will need to create new aggregate that fetch count of orders grouped by status. The list returned from this new aggregate will be assigned as source to Pie chart.

In this new aggregate you will need to add filter based on selected status on dropdown tag and we will implement this as comma separated text and check if  id of each status included into this text or not.

Kindly find attached oml with changes I implemented

DropdownTagsDemo_Updated.oml
UserImage.jpg
VinayJangam

Hi Mostafa,

Thank you it worked for me.


Regards,

Vin J

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.