Hi Kurli Sathvika,
You can try the anychart widget and its module, https://marketplace.mendix.com/link/component/106517
It has no.of building blocks with sample data.
You can directly place the building block, run the application, and view it in the browser. The settings Development mode will help you to explore the chart behavior.
Hope this helps!
Also check https://mydemoversion8-sandbox.mxapps.io/#/charts
and its downloadable code at github https://mydemoversion8-sandbox.mxapps.io/#