You can download this module from the appstore: https://appstore.home.mendix.com/link/app/105695/Mendix/Charts and build a pie chart that looks like this:
I think that’s what you’re after.
Hope that helps,
You need to create an entity like below
Entity Name: Spending
You can use the Pie charts available in the Mendix modeler. When you configure the pie chart, in the Data points tab, use the category as “Name attribute” and Value as the “Value attribute“.
Chart widget can be able to configure like this, you can add json attribute base on plotly js documentation
Hope this help.