Check out the any chart widget https://appstore.home.mendix.com/link/app/106517/ and the examples with Json on this page – https://www.anychart.com/de/products/anychart/gallery/Area_Charts/
to get your data in the chart, you might have to set up a export mapping to create the json for your any chart. let the chart data refresh when new data is coming in through your service