Permalink
Commits on Apr 11, 2011
  1. Merge branch 'tree'

    mbostock committed Apr 11, 2011
Commits on Apr 10, 2011
  1. Compute wrap-around separation.

    mbostock committed Apr 10, 2011
  2. Add tree-radial example.

    mbostock committed Apr 10, 2011
  3. A tiny bit cleaner.

    mbostock committed Apr 10, 2011
  4. More readability improvements.

    mbostock committed Apr 10, 2011
  5. More readability improvements.

    mbostock committed Apr 10, 2011
  6. Generalizing tree layout.

    Rather than specifying an orientation, compute the layout in normalized space. In a future change,
    I'd also like to clean up the temporary state that is stored on tree nodes, and record dx and dy
    attributes per node that could be used to compute a space-filling layout.
    mbostock committed Apr 10, 2011
  7. Add Reingold-Tilford tree layout.

    This is based on the Protovis layout; virtually no changes were needed
    to the code aside from handling of previous and next siblings.
    jasondavies committed Apr 10, 2011
Commits on Apr 9, 2011
  1. Merge branch 'examples_index' of https://github.com/jasondavies/d3 in…

    …to jasondavies-examples_index
    mbostock committed Apr 9, 2011
  2. Fix a transition bug in bullet chart.

    We were computing the tick join based on the (new) format function, but doesn't
    produce the desired effect: the new format is applied on the old data. Thus, the
    wrong join occurs if, say, the value 0.5 with the new format results in "0". The
    correct join compares the old text content to the new format value.
    mbostock committed Apr 9, 2011
  3. No initial transition.

    mbostock committed Apr 9, 2011
  4. Add remove test.

    mbostock committed Apr 9, 2011
  5. Add insert test.

    mbostock committed Apr 9, 2011
  6. Merge branch 'bullet'

    mbostock committed Apr 9, 2011
  7. Separate scales per bullet.

    Rather sharing the x-scale across bullet multiples, compute a separate scale per multiple. This
    gives the user more control over the scale: by setting the range values across multiples (in data),
    the user can precisely control the resulting scales. For transitions, we cache the old scale value
    in a hidden __chart__ attribute. This is a bit of a hack (it might be cleaner to persist it in the
    data of a child element), but it might provide a sticky way for charts to communicate with each
    other in the future, say for performing transitions across chart types.
    mbostock committed Apr 9, 2011
  8. Remove `parentData`.

    It's equivalent to `parentNode.__data__`, so it's not needed. Technically, this
    is not backwards-compatible, but these two fields on the group object are not
    part of the public API (despite being technically accessible).
    mbostock committed Apr 9, 2011
  9. Push bullet chart state into ticks element data.

    This means chart state (the original x-scale) is no longer bound to the
    chart instance, so a single instance can be reused on multiple elements.
    jasondavies committed Apr 9, 2011
Commits on Apr 8, 2011
  1. Rename var.

    mbostock committed Apr 8, 2011
  2. Add another bullet example.

    This example shows how to preserve scales across multiples using a single chart
    instance, as opposed to bullet-multiples which uses distinct chart instances to
    supply separate scales. I still think it'd be better to use a single chart
    instance in both cases, but then I need a different place to hide the scale
    state.
    mbostock committed Apr 8, 2011