Permalink
Commits on Oct 12, 2011
  1. Fix a daylight savings bug in d3.time.format.

    We weren't computing the day-of-year number correctly, which affected both day
    number and week number directives (%j, %U, and %W).
    mbostock committed Oct 12, 2011
  2. Merge branch 'release'

    mbostock committed Oct 12, 2011
  3. Add extended ISO 8601 support.

    The d3.time.format.iso is designed to be compatible with the default JSON
    serialization of dates, which includes milliseconds. So, d3.time.format now
    supports the %L directive for formatting and parsing milliseconds. This commit
    also changes d3.time.format.iso to use native ISO date methods, if available.
    mbostock committed Oct 12, 2011
Commits on Oct 11, 2011
  1. Fix a rounding bug in SI-prefix format.

    Also, expose d3.formatPrefix so that it's easier for callers to create a
    formatter for a specific prefix (such as using the "G" prefix for all ticks).
    mbostock committed Oct 11, 2011
  2. Add DOM-to-Canvas example.

    mbostock committed Oct 11, 2011
  3. Merge branch 'release'

    mbostock committed Oct 11, 2011
  4. Better rounding of significant digits.

    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".
    mbostock committed Oct 11, 2011
  5. Add d3.median.

    mbostock committed Oct 11, 2011
Commits on Oct 10, 2011
  1. Minor fixes for the axis component.

    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.
    mbostock committed Oct 10, 2011
Commits on Oct 8, 2011
  1. Rearrange polygon tests.

    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.
    jasondavies committed Oct 8, 2011
  2. Add tests for d3.geom.polygon and fix centroid bug.

    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.
    jasondavies committed Oct 8, 2011
  3. Merge pull request #335 from jasondavies/test

    Fix tests in Linux.
    mbostock committed Oct 8, 2011
  4. Remove dangling __data__ from other tests.

    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!
    jasondavies committed with jasondavies Oct 8, 2011
Commits on Oct 7, 2011
  1. Fix some potential race conditions in tests.

    Unless .html("") is called on d3.select("body"), elements appended by
    another test could interfere with data binding.
    
    See #329.
    jasondavies committed Oct 7, 2011
  2. Add d3.mean.

    Uses Welford's algorithm to avoid overflow.
    
    See #245.
    jasondavies committed Oct 7, 2011
  3. Merge branch 'release'

    mbostock committed Oct 7, 2011
  4. Fix spaces.

    mbostock committed Oct 7, 2011
  5. Merge branch 'transition-null' of https://github.com/jasondavies/d3 i…

    …nto release
    
    Conflicts:
    	test/core/transition-test-attr.js
    mbostock committed Oct 7, 2011
  6. Copy constructors for d3.rgb and d3.hsl.

    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.
    mbostock committed Oct 7, 2011
  7. Fix a bug in area step interpolation.

    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.
    mbostock committed Oct 7, 2011
  8. Make toString return #RRGGBB for all colours.

    This breaks a test case that ensures d3.hsl(x) == d3.hsl(d3.hsl(x)).
    
    Fixes #333.
    jasondavies committed Oct 7, 2011