Permalink
Commits on May 1, 2011
  1. Compute node position relative to parent.

    mbostock committed May 1, 2011
    Previously, we were computing the node position relative to the node, which is
    dangerous is the node is transformed. Computing it relative to the parent allows
    nodes to be positioned using the "transform" attribute.
  2. Merge branch 'jasondavies-qq'

    mbostock committed May 1, 2011
    * jasondavies-qq:
      Improvements to qq chart.
      Add x- and y-scales to Q-Q plot.
      Add Q-Q plot.
  3. Improvements to qq chart.

    mbostock committed May 1, 2011
Commits on Apr 30, 2011
  1. Merge branch 'jasondavies-spline-editor'

    mbostock committed Apr 30, 2011
    * jasondavies-spline-editor:
      Minor improvements to spline example.
      Simplify path handling.
      Bind mouse event handlers to window.
      Move spline editor to standalone directory.
      Add spline editor example.
  2. Merge branch 'jasondavies-sort'

    mbostock committed Apr 30, 2011
    * jasondavies-sort:
      Sort example improvements.
      Add parallel option to merge sort example.
      Add animated merge sort example.
  3. Sort example improvements.

    mbostock committed Apr 30, 2011
    Simplify the implementation of parallel merge-sort, so that we have one pass per
    swap across chunks. Use a data join so that the elements are translated rather
    than rotated, since this better conveys the underlying sort. Auto-play the
    animation in parallel, and restart a few seconds after it finishes.
  4. Add pixelbreaker link.

    mbostock committed Apr 30, 2011
  5. Prettify clock example.

    mbostock committed Apr 30, 2011
Commits on Apr 29, 2011
  1. Add polar clock example.

    jasondavies committed Apr 29, 2011
  2. Add parallel option to merge sort example.

    jasondavies committed Apr 29, 2011
    This simply shows the merges happening in parallel.
  3. Add animated merge sort example.

    jasondavies committed Apr 29, 2011
    Inspired by the phrase "reminiscent of wind gusting over tall grasses" in
    <http://vis.stanford.edu/protovis/ex/sort.html>.
    
    It seemed abominable not to animate the swaying tall grasses!
  4. Simplify path handling.

    jasondavies committed Apr 29, 2011
    There will always be a single <path> element, so no need to handle enter, update
    and exit cases.  WebKit seems to erroneously warn (in the error console) that it
    can't parse `d=""`.  I can't see anything in the SVG spec disallowing an empty
    `d` attribute so I think this is safe to ignore.
  5. Bind mouse event handlers to window.

    jasondavies committed Apr 29, 2011
    This produces much nicer behaviour when the mouse dragged outside the <svg>'s
    area.  Thanks, Mike!
Commits on Apr 28, 2011
  1. Simplify force calculations.

    mbostock committed Apr 28, 2011
    We don't actually need the separate `fx` and `fy` attributes on each node;
    instead we can modify the `x` and `y` attributes directly, since we're using
    position Verlet! This commit also adds the layout's `alpha` parameter to the
    tick event, such that normalized external forces can be applied.
Commits on Apr 27, 2011
  1. Move spline editor to standalone directory.

    jasondavies committed Apr 27, 2011
    I've dropped path transitions on Mike's recommendation as D3 doesn't have smart
    path interpolation at the moment so they don't work too well.
    
    I've also fixed some issues with data joins.
  2. Add spline editor example.

    jasondavies committed Apr 26, 2011
  3. Merge branch 'force'

    square-build-bot committed Apr 27, 2011
Commits on Apr 26, 2011
  1. Initialize node positions based on links.

    square-build-bot committed Apr 26, 2011
    This avoids excessive graph jiggling when new nodes are added to an existing
    layout. Rather than initializing the new node positions randomly, the new nodes
    are positioned to be adjacent to linked nodes.
  2. Better events for force layout.

    square-build-bot committed Apr 26, 2011
    The force layout's listeners are now scoped using the "force" namespace,
    allowing other event listeners to be registered. In addition, the force layout
    now stops propagation of mouseup events when a node is moved; this allows a
    mouseup listener on the node to fire only when it is not moved.
  3. More uniform gravity.

    square-build-bot committed Apr 26, 2011
    Gravity was getting too strong near the edges, causing bunch-up of nodes. We now
    use weaker exponential growth in gravitational strength, rather than linear.
Commits on Apr 25, 2011
  1. Add Q-Q plot.

    jasondavies committed Apr 24, 2011
  2. Update version to 1.12.0.

    mbostock committed Apr 25, 2011
  3. Merge branch 'hierarchy'

    mbostock committed Apr 25, 2011
  4. Merge branch 'force'

    mbostock committed Apr 25, 2011
  5. Use default priority of "" rather than null.

    mbostock committed Apr 25, 2011
    Maybe this'll make IE9 happy?