Constrain data of a chart widget by using a reference selector

Hello there, I am trying to have a Pie-Chart show some data that is being constrained by the selection of a reference selector. As an example, i want to select a value from the reference selector and then have the pie chart show all Objects the that have a matching value in the corresponding attribute. The Pie chart should update once a different value is selected in the reference selector.  Is it possible to achieve that? Thanks alot in advance
1 answers

Hello Cecil,

Yes, this is possible. You can use the ChartJS Widget from App Store and use a non persistent entity associated with the entity you would like the user to select from the reference selector. Assuming that the user is selecting a country from the reference selector, the domain model would look like this:

Now on the form level it would look like the below, were the reference selector is placed inside the Data View which has a data source of the Chart entity. And on change of the reference selector you can call a microflow to refresh the Chart object which in return will call again the DS microflow that you are going to specify inside the Chart Widget which is supposed to fetch and display the data in the chart based on the value selected by the user.

The Chart widget also has its documentation that will guide on how to display the data etc.

You can find this on

Hope my answer was of help to you and good luck! :)