I will just share you the steps to return the values via microflow instead of edit it.
For example, I am going to show the count of students based on gender.
Step 1 : Create a Non-Persistable entity like below
Step 2: Create a page which has a pie chart widget
Step 3: Add the below configuration details for pie chart widget
Step 4 DS Microflow which will calculate values
In the create object, I am mapping the values for both gender like below. Thats why two create objects.
The Output will be like this
I hope this will helps you.
Please let me know if you need any clarifications