Permalink
Commits on Mar 12, 2011
  1. Merge branch 'mbostock-master'

    mbostock committed Mar 12, 2011
Commits on Mar 11, 2011
Commits on Mar 10, 2011
Commits on Mar 9, 2011
  1. Expose d3.timer, for requestAnimationFrame.

    This allows external classes to hook into D3's timer mechanism, such as the
    iterative force-directed graph layout.
    mbostock committed Mar 9, 2011
Commits on Mar 8, 2011
  1. Woot, requestAnimationFrame!

    mbostock committed Mar 8, 2011
Commits on Mar 5, 2011
  1. Unplug env-js' timer module.

    This was breaking setTimeout and setInterval in Node, since I've already
    unplugged env-js' event loop. With that out of the way, we can write tests for
    transitions!
    mbostock committed Mar 5, 2011
  2. 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 5, 2011
Commits on Mar 4, 2011
  1. 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
  2. Fix env-js node 0.4.2 incompatibility.

    The `console` global is read-only; it cannot be reassigned.
    mbostock committed Mar 4, 2011
  3. Add lib/env-js.

    mbostock committed Mar 4, 2011
  4. Tiny simplification.

    mbostock committed Mar 4, 2011
Commits on Mar 3, 2011
Commits on Mar 1, 2011
  1. 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
Commits on Feb 28, 2011
  1. 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
  2. Restructure cartogram example.

    mbostock committed Feb 28, 2011
  3. 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 28, 2011
Commits on Feb 27, 2011
  1. 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. Restructure voronoi example.

    mbostock committed Feb 27, 2011
  3. Resize chord example.

    mbostock committed Feb 27, 2011
  4. Restructure splom example.

    mbostock committed Feb 27, 2011