Skip to content

v1.0.0

Choose a tag to compare

@mbostock mbostock released this 24 Jun 23:25
  • First stable release!

Changes since D3 3.x

Pursuant to the great namespace flattening, various methods have new names:

Also renamed for consistency:

Projections now have more appropriate defaults. For example, d3.geoOrthographic has a 90° clip angle by default, showing only the front hemisphere, and d3.geoGnomonic has a default 60° clip angle. The default projection for d3.geoPath is now null rather than d3.geoAlbersUsa; a null projection is used with pre-projected geometry and is typically faster to render.

“Fallback projections”—when you pass a function rather than a projection to path.projection—are no longer supported. For geographic projections, use d3.geoProjection or d3.geoProjectionMutator to define a custom projection. For arbitrary geometry transformations, implement the stream interface; see also d3.geoTransform. The “raw” projections (e.g., d3.geo.equirectangular.raw) are no longer exported.

See CHANGES for all D3 changes since 3.x.