Take a look at AnyChart, this should do what you need and the documentation can help you get started
https://docs.mendix.com/refguide/charts-any-configuration/
https://docs.mendix.com/refguide/charts-any-cheat-sheet/
https://marketplace.mendix.com/link/component/106517
Here are all the config options https://plotly.com/javascript/