Skip to content
Commits on Sep 1, 2011
  1. Merge branch 'release'

Commits on Aug 31, 2011
  1. @jasondavies
Commits on Aug 30, 2011
  1. Clamp easing functions to [0,1].

    Rather than have a treshold in transitions, we now clamp the easing functions.
    This guarantees that when the transition ends, the tweens will be called with
    t=1, and produce clean output values. Previously, that was not the case for
    certain easing functions, such as exp-out and elastic.
Commits on Aug 29, 2011
  1. Merge branch 'release'

  2. @jasondavies
  3. Merge pull request #278 from jasondavies/treemap-example

    Fix width/height of treemap-svg example.
  4. @jasondavies

    Add source and target accessors.

    jasondavies committed
    Higher-order programming!  This makes it more akin to d3.svg.chord i.e.
    it can take "d" and "i" arguments.  Thanks for the suggestion, Mike!
    Also made "n" and "radius" configurable, too.
  5. @jasondavies

    Fix width/height of treemap-svg example.

    jasondavies committed
    In IE9, using style("width", 960) fails with "SCRIPT87: invalid
    argument" because strictly speaking, non-zero CSS widths need a unit
    e.g. "960px".  In SVG, we normally use width/height attributes via
    attr() instead of the CSS equivalents.
  6. Fix for IE9's style.setProperty.

    IE9 does not string-coerce values, instead throwing an error. We now wrap IE9's
    implementation to force string coercion. While it would be simpler to turn on
    string-coercion for all browsers inside D3's style operator, this approach
    avoids penalizing standards-compliant browsers.
    This commit also moves language-compatibility code to a separate directory, and
    deletes the obsolete Object.create polyfill, which is no longer needed by D3.
  7. Fire a tick immediately on start.

    This improves the performance of transitions that have already ended (those with
    zero duration), as the transition can end immediately on start rather than
    waiting for a second tick.
Commits on Aug 28, 2011
  1. Don't string-coerce ordinal domain values.

    Fixes #274. String coerce for uniqueness, but store the original input types in
    the domain for subsequent retrieval. This way, you can more easily use
    non-strings as domain values (such as dates or numbers).
  2. Improve stability of charge forces.

    Previously, we were modifying the node's x & y position as we were computing
    the charge forces. Unfortunately, this causes drift because those positions are
    subsequently used to compute other forces. Now we modify the node's previous
    position in the opposite direction, which has the same ultimate effect but
    improves the stability of the calculation.
    This commit also optimizes the force layout such that gravity and charge forces
    are not calculated if the corresponding constants are zero.
  3. @jasondavies

    Add d3.geo.greatcircle.

    jasondavies committed
    Can be used to generate great circle paths.  Similar to R's
    geosphere.gcIntermediate (in which I discovered a bug, while writing the
    test case for this!)
    Includes d3.geo.greatcircle().distance for computing the shortest geo
    path distance using the Haversine formula.
    For a tutorial on using great circles, see:
Commits on Aug 27, 2011
  1. Fix a bug in link strength scaling.

    There was a bug in the previous fix to increase the stability of link
    relaxation; the strength of a link would decrease relative to the link degree of
    the connected nodes. Instead of decreasing link strength, we should instead bias
    the relaxation so that the lighter node moves more than the heavier node, while
    preserving the strength of the link.
  2. Fix a flakey test.

    Need to wait a bit to allow the other transition to finish, too.
  3. @jasondavies
  4. @jasondavies
  5. @jasondavies

    Standardise normalisation and minor name tweak.

    jasondavies committed
    Thanks to @mbostock for an excellent exposition of geo nomenclature!
    <#271 (comment)>
  6. @jasondavies

    Add invert to mercator, albers and azimuthal.

    jasondavies committed
    Includes unit tests.
    Fixes #246.
  7. Merge branch 'release'

Commits on Aug 26, 2011
Something went wrong with that request. Please try again.