Are you extending the graph widget of Mendix or creating your own? Otherwise check out the Mendix widget on how to load plotly: https://appstore.home.mendix.com/link/app/105695/Mendix/Charts
Regards,
Ronald
When your standard charts are not sufficient you can use the Any chart to create all plolty chart with more flexibility
https://appstore.home.mendix.com/link/app/106517/