Commits on Mar 5, 2011
  1. @mbostock

    Ack, Sizzle doesn't sort by default.

    The Selectors API guarantees that results are returned in document order, but
    Sizzle does not, by default. So now we sort the results when using Sizzle. Yay
    tests!
    mbostock committed Mar 4, 2011
Commits on Mar 4, 2011
  1. @mbostock
  2. @mbostock

    Allow env-js to be require'd.

    This fixes a bug with the usage of `require` in env-js, such that env-js now
    uses proper relative paths rather than unshifting "." onto `require.paths`. The
    behavior of `require` is documented here:
    
      <http://nodejs.org/docs/v0.4.2/api/modules.html#all_Together...>
    
    With this change in place, it's now possible to use env-js simply by require'ing
    it from a script, rather than having env-js host and eval.
    
    Also, this commit changes the initialization of env-js, such that the initial
    document is immediately available when the env-js module is loaded. And, the
    event loop is disabled so that env-js shuts down cleanly. This probably breaks
    some parts of env-js, but it makes it much easier to use so I'm going to play
    with it a bit.
    mbostock committed Mar 4, 2011
  3. @mbostock

    Fix env-js node 0.4.2 incompatibility.

    The `console` global is read-only; it cannot be reassigned.
    mbostock committed Mar 4, 2011
  4. @mbostock

    Add lib/env-js.

    mbostock committed Mar 4, 2011
  5. @mbostock

    Tiny simplification.

    mbostock committed Mar 3, 2011
Commits on Mar 3, 2011
  1. @mbostock
  2. @mbostock
Commits on Mar 1, 2011
  1. @mbostock

    Add support for sortKeys on d3.nest.

    The method existed previously, but it only makes sense in conjunction with the
    newly-added `entries` operator; map keys are inherently unsorted. Originally I
    envisioned that key-sorting could be done externally using `d3.entries`, but
    that's tedious for hierarchical structures.
    mbostock committed Mar 1, 2011
  2. @mbostock
Commits on Feb 28, 2011
  1. @mbostock
  2. @mbostock

    Add treemap example.

    Still a work in progress. Need to decide on the appropriate API for representing
    tree structures; not sure I want to go the heavyweight pv.dom route. May also
    need rounding to exact pixel values.
    mbostock committed Feb 28, 2011
  3. @mbostock

    Restructure cartogram example.

    mbostock committed Feb 28, 2011
  4. @mbostock
  5. @mbostock

    Better force-directed layout.

    Use the Floyd-Warshall algorithm to compute the shortest path between nodes, and
    use that graph theoretic distance as the distance constraint for the Gauss-
    Seidel relaxation. In addition, have the constraint alpha decay over time, as in
    Simulated Annealing.
    mbostock committed Feb 27, 2011
Commits on Feb 27, 2011
  1. @mbostock

    Add d3.interpolateHsl.

    This allows scale interpolation in HSL space. For example:
    
        var fill = d3.scale.linear()
            .interpolate(d3.interpolateHsl)
            .domain([0, 100])
            .range([d3.hsl(180, .5, 1), d3.hsl(180, .5, 0)]);
    
    You could approximate this in previous versions using d3.interpolateString, but
    the new interpolation method is slightly faster and also provides backwards-
    compatibility for browsers that only understand RGB.
    mbostock committed Feb 27, 2011
  2. @mbostock

    Restructure voronoi example.

    mbostock committed Feb 27, 2011
  3. @mbostock
  4. @mbostock
  5. @mbostock

    Resize chord example.

    mbostock committed Feb 27, 2011
  6. @mbostock

    Restructure splom example.

    mbostock committed Feb 27, 2011
  7. @mbostock

    Restructure force example.

    mbostock committed Feb 27, 2011
  8. @mbostock

    Resize a few examples.

    mbostock committed Feb 27, 2011
Commits on Feb 26, 2011
  1. @mbostock

    Restructure choropleth example.

    mbostock committed Feb 25, 2011
Commits on Feb 25, 2011
  1. @mbostock

    Tweak README.

    mbostock committed Feb 25, 2011
Commits on Feb 24, 2011
  1. @mbostock

    Sort for layout, but don't reorder.

    This fixes a bug in the pie layout sorting where we want the sort order to
    affect the layout, but not the order in which arcs are rendered—and furthermore
    we want the order of arcs to always match the order of data. (If you want to
    sort the data, do that before it is passed to the layout.)
    mbostock committed Feb 24, 2011
  2. @mbostock

    More convenient pies.

    This adds d3.layout.pie, which can be used to compute the start and end angles
    for arcs given an arbitrary array of data. In addition, d3.svg.arc now has a
    `centroid` method that computes the center of the arc, useful for labeling.
    Together these changes greatly simplify the donut & pie examples.
    
    This commit also includes a `map` method for selections, which is similar to the
    `filter` method. This allows you to map the data bound to the current selection.
    I'm not currently using it, but it seems like a useful feature for those cases
    where you want to rebind the current selection to different (but related) data.
    mbostock committed Feb 24, 2011
Commits on Feb 23, 2011
  1. @mbostock

    Oops, include sqrt transform.

    mbostock committed Feb 23, 2011
  2. @mbostock

    Merge branch 'master' of github.com:mbostock/d3

    Conflicts:
    	src/core/core.js
    mbostock committed Feb 23, 2011
  3. @mbostock

    Non-contiguous cartogram example.

    Also includes new d3.geom.polygon.centroid method. Props to Zachary Johnson for
    the inspiration!
    mbostock committed Feb 23, 2011
  4. @mbostock
Commits on Feb 19, 2011
  1. @mbostock

    Merge branch 'array_slice' of https://github.com/jasondavies/d3 into …

    …jasondavies-array_slice
    
    Conflicts:
    	src/core/call.js
    mbostock committed Feb 19, 2011
Commits on Feb 18, 2011
  1. @mbostock

    Remove slice(arguments).

    mbostock committed Feb 18, 2011
  2. @jasondavies
  3. @jasondavies

    Fix `d3_array` for older/more esoteric browsers.

    This code is adapted from `makeArray` in Sizzle.js.
    jasondavies committed Feb 18, 2011