Commits on Sep 1, 2011
  1. Merge branch 'release'

    mbostock committed Sep 1, 2011
Commits on Aug 31, 2011
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.
    mbostock committed Aug 30, 2011
Commits on Aug 29, 2011
  1. Merge branch 'release'

    mbostock committed Aug 29, 2011
  2. Merge pull request #278 from jasondavies/treemap-example

    Fix width/height of treemap-svg example.
    mbostock committed Aug 29, 2011
  3. Add source and target accessors.

    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.
    jasondavies committed Aug 29, 2011
  4. Fix width/height of treemap-svg example.

    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.
    jasondavies committed Aug 29, 2011
  5. 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.
    mbostock committed Aug 29, 2011
  6. 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.
    mbostock committed Aug 29, 2011
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).
    mbostock committed Aug 28, 2011
  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.
    mbostock committed Aug 28, 2011
  3. Add d3.geo.greatcircle.

    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:
    jasondavies committed Aug 28, 2011
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.
    mbostock committed Aug 27, 2011
  2. Fix a flakey test.

    Need to wait a bit to allow the other transition to finish, too.
    mbostock committed Aug 27, 2011
  3. Standardise normalisation and minor name tweak.

    Thanks to @mbostock for an excellent exposition of geo nomenclature!
    <#271 (comment)>
    jasondavies committed Aug 27, 2011
  4. Add invert to mercator, albers and azimuthal.

    Includes unit tests.
    Fixes #246.
    jasondavies committed Aug 27, 2011
  5. Merge branch 'release'

    mbostock committed Aug 27, 2011
Commits on Aug 26, 2011