Hi Maria
If you want to show the dynamic count of Approved, Pending and Cancelled in the Pie Chart, please create a variable for
Y value (Example $ApprovedCount, $PendingCount, $CancelledCount) in your PieChart microflow and add this variable to the X value to show it in the legend.
Please do take a look at these two examples. Hope it helps.
https://forum.mendix.com/link/questions/102607
https://forum.mendix.com/link/questions/102161