Does meteor support d3 version 4?


#1

Does meteor support d3 version 4? If it does, how can I install d3 v4 in meteor?
The “meteor add d3js:d3” seems to install version 3.5.8 not 4.


#2

Via npm, yes. Not only does it support v4, but it should support the super latest v5 (launched last week?).

Just meteor npm install --save d3 and you should be good to go.

Which UI framework are you using? If React, you’ll want to read up on Portals. They’ll let you cleanly attach D3 visualizations onto the React DOM.


#3

Thank you so much for your comment about support for d3 version 5 as I just found out that version 5 is out and got curious if version 5 is now supported in meteor and you read my mind.
And I am using React so thank you so much for your comment on Portals too. I will definitely read that.