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]
Hello Anonymous,
Yes, svg-utils don't support v4 yet, but it's in backlog.
D3 v3 was one large library. You had to include all of it, even if you didn't need all of it.
D3 v4 is actually a set of small modules. You can choose to use one or more as you need them.
For example, if you need 'selection' from D3 v4, you can add the following packages to your project:
https://www.npmjs.com/package/d3-selection
https://www.npmjs.com/package/@types/d3-selection
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