Have a look at this reference:
https://docs.mendix.com/refguide/charts-configuration
You’ll need to download marketplace content for charts:
Anycharts: https://marketplace.mendix.com/link/component/106517
Charts: https://marketplace.mendix.com/link/component/105695
I assume that the data which you want to display a chart for is already available in Mendix. Otherwise you’d have to get the data from external sources in Mendix and then display in your graphs