title: How to show two Pie Charts on the same Mendix page?
body: <p>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. </p>
  
  <p>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.</p>
  
  <p>Sounds simple and it works perfectly with Data Grids! But the Pie Chart widgets remain empty, and I can't understand why. </p>
  
  <p>What I have:</p>
  
  <p>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. </p>
  
  <p><a href="https://i.stack.imgur.com/rXglq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rXglq.png" alt="enter image description here"></a></p>
  
  <p>I created some pages using which I can create new objects for the Pie Chart entities and save them in the database.</p>
  
  <p><a href="https://i.stack.imgur.com/U74iZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U74iZ.png" alt="enter image description here"></a></p>
  
  <p>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.</p>
  
  <p><a href="https://i.stack.imgur.com/7LrCN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7LrCN.png" alt="enter image description here"></a></p>
  
  <p>The microflow:</p>
  
  <p><a href="https://i.stack.imgur.com/tUGzq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tUGzq.png" alt="enter image description here"></a></p>
  
  <p>One Pie Chart Widget settings (the second one is the same just linked to another Pie Chart entity):</p>
  
  <p><a href="https://i.stack.imgur.com/jnIxO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jnIxO.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/LQg9h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LQg9h.png" alt="enter image description here"></a></p>
  
  <p>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. </p>
  
  <p><a href="https://i.stack.imgur.com/oo93Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oo93Q.png" alt="enter image description here"></a></p>
  
  <p>Why is it happening and how can I fix it?</p>