Forum Discussion
Anonymous
8 years agoNot applicable
D3.js Supported versions?
Hi, I am currently working with writing custom visuals in Power BI using the D3.js library. https://d3js.org/ Initially I had issues getting the D3 files packaged into the PowerBI packages via ...
- 6 years ago
Hi Simon,
If you build a visual under powerbi-visuals-tools higher than 2.5, you can use any npm library for your visual.
The most of MS visuals currently use D3 v5.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
v-viig
8 years agoCommunity Champion
D3 v4 actually works. However, you can't use ES2015 module system (import/export).
I suppose that you should use window.window.d3 to access d3 v4.
Another option is to use prebundler such as webpack or rollup in order to generate a single JS file and use this file in pbiviz tools.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Anonymous
8 years agoNot applicable
Thanks for the reply v-viig I will give this a try asap.
Cheers.
Matt