Commits on Aug 29, 2011
  1. Merge branch 'release'

    mbostock committed Aug 29, 2011
  2. Add source and target accessors.

    jasondavies committed Aug 29, 2011
    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.
  3. Fix for IE9's style.setProperty.

    mbostock committed Aug 29, 2011
    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.
  4. Fire a tick immediately on start.

    mbostock committed Aug 29, 2011
    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.

    mbostock committed Aug 28, 2011
    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.

    mbostock committed Aug 28, 2011
    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. Add d3.geo.greatcircle.

    jasondavies committed Aug 28, 2011
    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.

    mbostock committed Aug 27, 2011
    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.

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

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

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

    mbostock committed Aug 27, 2011
Commits on Aug 26, 2011
  1. Use reference count rather than owner id.

    mbostock committed Aug 26, 2011
    As of 2.0.0, it's possible to have multiple transitions running concurrently
    with the same id. Thus, it is no longer sufficient to check the transition id
    to decide whether to delete the transition lock. We now use reference counting
    to determine the number of transitions that are scheduled on a given element;
    when that number drops to zero, we can delete the transition lock.
  2. Fix KDE example.

    jasondavies committed Aug 26, 2011
    It should have been using a probability (density) histogram. I think
    there used to be a bug in d3.layout.histogram, which is now fixed.
  3. Create the root selection after the prototype.

    mbostock committed Aug 26, 2011
    This fixes a breakage on IE9, which doesn't support array subclassing through
    prototype injection. On IE9, we then use direct extension of the prototype, but
    this can only be done after the prototype is fully-defined.
  4. Fix negatively-sized rectangles in treemap.

    jasondavies committed Aug 26, 2011
    Includes unit test!
    Fixes #136.
Commits on Aug 25, 2011
  1. Fix zooming in Firefox.

    mbostock committed Aug 25, 2011
    We were mistakenly binding Firefox's DOMMouseScroll to dblclick rather than
    mousewheel. Also, there's no acceleration on these events, so we need to make
    them faster to match the typical behavior of mousewheel.
  2. Fix albersUsa, again.

    mbostock committed Aug 25, 2011
  3. Merge branch 'release'

    mbostock committed Aug 25, 2011