How to Dynamically Update AnyChart Map, Bar, and Pie Charts Based on Dropdown Filters in Mendix?

0
Hi Mendix Community, I'm building a dashboard that contains three AnyChart charts: Map Chart – shows number of users per country Bar Chart – shows number of users using each language, per country Pie Chart – shows language distribution across users I have two dropdown filters on the page: 1. TimeSpan Filter (affects all 3 charts): Options: Daily, Weekly, Monthly, Yearly, Custom Based on this selection, I want to show: Daily → data from the last 1 day Weekly → last 7 days Monthly → last 30 days Yearly → last 365 days Custom → user selects a specific date range (FromDate and ToDate) 2. Country Filter (only affects Bar & Pie charts): Options: All Countries → show language usage across all countries Or a specific country → show language usage for that country only     What I Need Help With: How can I create a single reusable microflow that: Filters the data based on the selected TimeSpan Applies optional country or language filters Generates JSON for all 3 charts (Map, Bar, Pie) How do I structure this microflow without using multiple decision branches or duplicating logic? What’s the best practice to generate and assign dynamic chart JSON and refresh all three charts efficiently in Mendix? Any guidance, examples, or suggestions are appreciated.   Thank you in advance! Reemali Patil
asked
1 answers
0

Hi Reemail,  you can watch this video, this can a guide for you. 

 

https://youtu.be/7osq7pib1cI?t=1477

answered