Are you using any chart widgets?
If not you can make use of any chart widget from the marketplace.
You can load the data using JSON Constructed from a microflow.
Mendix Any Chat documentation : https://docs.mendix.com/howto7/extensibility/charts-any-usage/
For Stacked Bar charts check the Plotly site for JSON:
link for your reference : https://plotly.com/javascript/bar-charts/#stacked-bar-chart
Hope it helps!!1