Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 11, 2011
  1. Merge branch 'release'

    authored
  2. Remove trailing whitespace.

    authored
  3. Add d3.interpolators registry.

    authored
    This is useful when other modules want to register interpolators for
    d3.interpolate without adding an explicit dependency to d3.core.  The
    interpolators are applied in reverse order, and the first one that returns
    a function is used.
    
    (This commit was authored by @jasondavies and cherry picked.)
  4. Reduce code duplication.

    authored
    I'm not totally sure about the nicing behavior for pow scales; we might want it
    to behave more like nicing for log scales. But this works for now!
  5. Simplify subclassing of hierarchy layout.

    authored
    The subclasses can't use the same object as the parent class, because they are
    functions. But, there's no reason to duplicate the code that rebinds the methods
    onto the subclass.
  6. Tweens are now optional.

    authored
    If the tween function returns null, then no tween will be applied for the
    specified element. The default tween function now returns null if the start and
    end value are the same, thus avoiding redundant interpolation.
Commits on Jun 7, 2011
  1. @jasondavies

    Slightly more compact tests for nice scales.

    jasondavies authored
    The longer domains mess up the aligment but I'm sure Mike will figure something
    out!
  2. @jasondavies

    Add semicolons.

    jasondavies authored
  3. @jasondavies
  4. @jasondavies

    Fix nice pow scale.

    jasondavies authored
    We can't just rebind the internal linear scale's nice function because the
    linear scale's domain is the exponentiated pow domain, so the actual pow domain
    would most likely be fractional as the linear scale will round to the nearest
    integer exponentiation.
  5. @jasondavies
Commits on Jun 6, 2011
  1. @jasondavies

    Fix "nice" log scales.

    jasondavies authored
    Turns out we just needed to test for reversed domains.
    
    Fixes #176.
  2. @jasondavies

    Add d3.scale.log().nice().

    jasondavies authored
    Based on the Protovis implementation.  Includes tests.  I'm not sure [10.9, 1.1]
    should be "niced" to [10, 10] but this is also the behaviour in Protovis at the
    moment.
  3. @jasondavies

    Update unit tests.

    jasondavies authored
    Forgot to update the .out file in the previous commit.  Also added a check for
    domain [0, .49].
  4. @jasondavies

    Add d3.scale.linear().nice().

    jasondavies authored
    Based on the Protovis implementation.  "Nices" the scale, extending the bounds
    of the input domain to evenly-rounded values.
Commits on Jun 3, 2011
Commits on Jun 2, 2011
  1. Add Marimekko chart example.

    authored
Commits on May 30, 2011
  1. Fix d3.min and d3.max, again.

    authored
    Unlike Math.min and Math.max, it doesn't make sense to return negative or
    positive infinity for d3.min and d3.max; the D3 functions return the minimum
    value according to an arbitrary ordering, not by numeric value. Instead, the
    minimum or maximum of an empty array, or an array that contains only degenerate
    values, should always be undefined.
  2. Merge branch 'azimuthal'

    authored
  3. Merge branch 'release'

    authored
  4. Rewrite mousewheel hack using D3.

    authored
    Also, make sure that the div is positioned absolutely off-screen.
  5. @jasondavies

    Better mousewheel precision.

    jasondavies authored
    Copy Mike's new mousewheel hack from Polymaps.
    
    Fixes #156.
  6. @jasondavies

    d3.min & d3.max: ignore NaN at [0].

    jasondavies authored
    Note: this now returns Infinity and -Infinity for zero-element arrays, whereas
    previously an error would have occurred.
    
    Fixes #161.
  7. @jasondavies
Commits on May 29, 2011
Commits on May 28, 2011
  1. Stereographic & orthographic projections!

    authored
    These now have arbitrary origins, as well. Still need to clip, though.
Something went wrong with that request. Please try again.