I'm working on a Mendix app, and I need to display two or more Pie Charts on the page. The problem is, that in Mendix I can pass only one entity object to the page.
So if I want to show multiple Pie Charts, I have to create a "Wrapper" entity, associated with the Pie Chart entities, pass the Wrapper to the page, and access Pie Chart entities by association.
Sounds simple and it works perfectly with Data Grids! But the Pie Chart widgets remain empty, and I can't understand why.
What I have:
I have two entities for the two Pie Charts and a Wrapper entity associated with them. I pass this entity to the page in order to access associated entities by association.
I created some pages using which I can create new objects for the Pie Chart entities and save them in the database.
On the page where I want to display the Pie Charts, I added 2 Data View widgets and passed the Wrapper object to them using a microflow. Inside of each Data View, I added a second Data View and linked it with the corresponding Pie Chart entity by association. Inside of the second Data View widgets, I added the Pie Chart widgets.
The microflow:
One Pie Chart Widget settings (the second one is the same just linked to another Pie Chart entity):
I also added Data Grid widgets for testing purposes. As you can see, Data Grid can access the data I entered, but the Pie Chart widgets remain empty.
Why is it happening and how can I fix it?