Skip to content
mbostock edited this page Mar 26, 2013 · 33 revisions

WikiRelease Notes3.1

Geo

Selections

Scales and Data

Geometry

And one more thing…

Thanks to SMASH, you can now build a minimal version of D3 that has just the parts you need, reducing the size of your JavaScript assets. For example, if you need d3.geo.mercator and d3.geo.path to render some stuff to Canvas, you could build a minimal bundle that’s only 24K:

smash src/start.js src/geo/path.js src/geo/mercator.js src/end.js > lib.js

See the SMASH wiki for a more detailed example including an example Makefile.

Clone this wiki locally