You need to create a widget to be able to use D3 charts. You could take a look at this widget that already use the D3 Gauge.:https://appstore.home.mendix.com/link/app/8677/First-Consulting/D3-Gauge
Widgets can be extracted when you rename them to .zip so you can then inspect the code. You could may be rewrite it for the specific D3 chart. And if it works please add the widget to the appstore.
Regards,
Ronald