I'm trying to build a grid that displays a set of users, in this example 5 users, and a pie chart that displays those 5 users' licenses and a block of 5 unused licenses for a total of 10 licenses. This jsbin
demonstrates the grid and chart. Click the delete button. Notice the grid removes and row but the chart does not reflect the change.
My question is why doesn't the chartDataSource get refreshed when the gridDataSource's data changes?
I found this
post and it does provide a workaround but I don't see why the chartDataSource function doesn't get called when model.get('gridDataSource') is used inside of it and clearly the gridDataSource changes.
Here is a jsbin
that demonstrates the workaround.