Skip to content

Releases: d3/d3

3.1.3

12 Jul 18:09
Compare
Choose a tag to compare
  • Fix d3.geo.mercator such that the clip extent is determined automatically by default.

3.1.2

12 Jul 18:10
Compare
Choose a tag to compare

3.1.1

12 Jul 18:12
Compare
Choose a tag to compare

3.1 “Svalbard”

02 Jul 19:14
Compare
Choose a tag to compare

Geo

Mercator Projection

The Mercator projection now uses viewport clipping rather than clamping latitudes. The viewport is automatically determined by the projection’s scale and translate, but can be set explicitly using projection.clipExtent. Note that only d3.geo.mercator uses viewport clipping; d3.geo.mercator.raw does no clipping or clamping.

D3 3.1 changes the scale of d3.geo.mercator, increasing the effective scale factor by 2π. When upgrading to 3.1, divide your previous scale by 2π when setting, or multiply by 2π when getting. See the d3.geo.tile example for sample usage.

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.

3.0.8

12 Jul 18:13
Compare
Choose a tag to compare

3.0.7

12 Jul 18:21
Compare
Choose a tag to compare

3.0.6

12 Jul 18:36
Compare
Choose a tag to compare
  • Fix d3.svg.axis such that: the “tick” class is applied to the g element, rather than the line; the domain path is properly entered when called via transition; and an invalid orientation is treated as "bottom".
  • Fix selection.sort such that null nodes are placed at the end, rather than passing undefined to the comparator.
  • Fix force.linkDistance and force.linkStrength such that they return a constant value if the link distance or strength is specified as a constant value, rather than returning a function; fix force.drag such that a drag behavior is properly instantiated when called with no arguments, and any additional set fixed bits are preserved on mouseup or mouseout.
  • Fix d3.geom.voronoi to workaround Prototype’s broken implementation of array.filter.
  • Fix d3.format and d3.formatPrefix to use MICRO SIGN (µ) rather than GREEK SMALL LETTER MU (μ), and fix the rounding specifiers "p" and "r".
  • Fix d3.behavior.zoom’s detection of wheel event support, and increase speed for browsers that do not support wheel events.
  • Optimize d3.random.logNormal.
  • Optimize d3.geo.area.
  • Capture references to the d3 namespace, the current document and the current window, rather than rely on globals; allows multiple versions of D3 to be loaded independently.

3.0.5

12 Jul 19:04
Compare
Choose a tag to compare
  • Update JSDOM dependency (when using D3 within Node), and remove Sizzle dependency.

3.0.4

12 Jul 19:16
Compare
Choose a tag to compare
  • Fix greatArc.target when the specified target is a constant. (Note: greatArc was deprecated in 3.1.0.)

3.0.3

12 Jul 19:15
Compare
Choose a tag to compare
  • Fix selection.data when duplicate keys are specified; only the first datum or element is considered and subsequent data or elements are ignored.
  • Allow projection to return null if the specified location is clipped.
  • Fix localization when building on Linux.