Forum Discussion
D3.js Supported versions?
- 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]
Hi nikitagrachev
Thanks for the reply.
Have you successfully got Version 4 running in a custom visual?
This blog post suggests that it doesn't currently work (but it is a few months old). http://blog.jongallant.com/2016/11/pbiviz-12-d3-35-reference/
I am unable to find any guidance that is more recent.
Think I will try it out again.
Cheers,
Matt
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
- Anonymous8 years agoNot applicable
Thanks for the reply v-viig I will give this a try asap.
Cheers.
Matt