Unfortunately, this isn't something I've done...
But if you are using the API to get data back, that means you should have raw data available, it's a matter of making it display visually... I don't know what, if anything, that AEM has out of the box, but you could look into Google Charts, which is a JS and CSS solution to visualize data in a website?
https://developers.google.com/chart