Hi Jonathan,
There is any chart module in Mendix marketplace where you can custom define the json for the widget.
Simply go to plotly.js and select the chart you want and define the json as per your requirement and use the same in mendix. There are lot of customization possible.
Let me know if you still face issues. All the best.
Cheers,
Dibyanshu
Resilient IT Services