d3.js v4 is a collection of modulized libs. So it is very good to only include what you needs. This repository is a very simple sample for this. Use ES2015 module syntax to include what is required. And use rollup to bundle it. Base sample is http://bl.ocks.org/d3noob/a22c42db65eb00d4e369
othree / d3-v4-rollup Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License