Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

    authored
  2. Better rounding of significant digits.

    authored
    This simplifies the implementation and fixes a few bugs. The si prefix format
    ("s") now supports variable precision; in fact, you are strongly recommended to
    specify a precision, such as ".3s".
  3. Add d3.median.

    authored
Commits on Oct 10, 2011
  1. Minor fixes for the axis component.

    authored
    You can now change the orientation and the axis will redraw correctly. When an
    axis is applied by a transition, the subtransitions will properly inherit the
    transition id, allowing transitions on reselected elements to continue.
Commits on Oct 8, 2011
  1. @jasondavies

    Rearrange polygon tests.

    jasondavies authored
    This arranges them first by the type of polygon we're testing, then the
    operations.  I've added tests for clockwise polygons too, for good
    measure.
  2. @jasondavies

    Add tests for d3.geom.polygon and fix centroid bug.

    jasondavies authored
    d3.geom.polygon(…).area() assumes screen pixel coordinates with (0, 0)
    at the top left, and y increasing going downwards.  This results in a
    positive area for counterclockwise coordinates.  Howver, the default
    centroid calculation was assuming "usual" Cartesian coordinates with y
    increasing going upwards, hence the centroid coordinates were
    incorrectly multiplied by -1.
    
    This fix won't affect d3.geo.path(…).centroid() as it passes a constant
    to d3.geom.centroid.
  3. Merge pull request #335 from jasondavies/test

    authored
    Fix tests in Linux.
  4. @jasondavies

    Remove dangling __data__ from other tests.

    jasondavies authored
    This occurs on Linux, where the directory listing order is different
    from OS X and so other tests leave data bound to the "body" element.
    This data is then propagated when new elements are appended, and thus
    mess up some of the tests!
  5. @jasondavies
Commits on Oct 7, 2011
  1. @jasondavies

    Fix some potential race conditions in tests.

    jasondavies authored
    Unless .html("") is called on d3.select("body"), elements appended by
    another test could interfere with data binding.
    
    See #329.
  2. @jasondavies

    Add d3.mean.

    jasondavies authored
    Uses Welford's algorithm to avoid overflow.
    
    See #245.
  3. Merge branch 'release'

    authored
  4. Fix spaces.

    authored
  5. Merge branch 'transition-null' of https://github.com/jasondavies/d3 i…

    authored
    …nto release
    
    Conflicts:
    	test/core/transition-test-attr.js
  6. Copy constructors for d3.rgb and d3.hsl.

    authored
    Previously, these would work by coercing the input color to a string and then
    parsing it. This is slow, but more importantly, this is a lossy process for HSL
    colors due to the conversion to hexadecimal RGB format. This commit detects
    instances of d3_Rgb and d3_Hsl on input and copies them efficiently.
  7. Fix a bug in area step interpolation.

    authored
    When computing the reversed baseline, we need to switch between step-before and
    step-after, since the points are in reverse order. Otherwise, we're effectively
    filling the gap between step-before and step-after.
  8. @jasondavies

    Make toString return #RRGGBB for all colours.

    jasondavies authored
    This breaks a test case that ensures d3.hsl(x) == d3.hsl(d3.hsl(x)).
    
    Fixes #333.
Commits on Oct 6, 2011
  1. @jasondavies

    Use ternary ? happy : unhappy.

    jasondavies authored
    Using the comma operator isn't so bad, and I added it to removeAttribute
    for good measure in case there's an implementation out there that
    returns something.
  2. @jasondavies

    Fix bug when transitioning namespaced attributes.

    jasondavies authored
    Also, simplify handling of nulls.
  3. Merge pull request #328 from larskotthoff/maketarget

    authored
    make Makefile GNU make v3.82 compatible
  4. @jasondavies

    Small optimisation.

    jasondavies authored
  5. @jasondavies
Commits on Oct 5, 2011
  1. @jasondavies
  2. @jasondavies
  3. @jasondavies
Commits on Oct 4, 2011
  1. @larskotthoff
Something went wrong with that request. Please try again.