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

WikiRelease Notes3.1

SMASH

D3 now uses SMASH to structure its source code into modular components with dependencies. This means that you can 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 > bundle.js

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

Geo

  • Major and minor step to graticule. Default graticule step is now 10°.
  • Add d3.geo.distance; deprecate d3.geo.greatArc.
  • Add d3.geo.length.
  • Add d3.geo.albersUsa invert.
  • Add d3.geo.rotation.
  • Add d3.geo.projection clipExtent.
  • Add d3.geo.transverseMercator.
  • Add d3.geo.conicConformal, conicEquidistant, conicEqualArea.
  • Fixed scale of d3.geo.mercator. Note: Mercator projection may require clipExtent now.

Selections

  • Add selection.on("mouseenter") and selection.on("mouseleave") polyfill.
  • Add selection.on(".name", null).
  • Add selection.insert(name, function)
  • Fix for selection.classed in Safari 5.

Scales and Data

  • Allow row conversion for d3_dsv.parse.
  • Add d3_dsv.format.
  • Add d3.set.
  • Allow d3.map to be used with d3.nest.
  • Add d3.scale.log base.
  • Add d3.scale.linear tickPrecision.

Geometry

  • Add accessors for d3.geom.{voronoi,quadtree,hull}.
  • Add d3.geom.voronoi links, triangles; deprecate d3.geom.delaunay.
Clone this wiki locally