Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 11, 2011
  1. Merge branch 'tree'

Commits on Apr 10, 2011
  1. Add tree-radial example.

  2. A tiny bit cleaner.

  3. 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.
  4. @jasondavies
  5. @jasondavies

    Add Reingold-Tilford tree layout.

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

    …to jasondavies-examples_index
  2. @jasondavies
  3. 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.
  4. No initial transition.

  5. Add remove test.

  6. Add insert test.

  7. Merge branch 'bullet'

  8. 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.
  9. 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).
  10. @jasondavies

    Push bullet chart state into ticks element data.

    jasondavies authored
    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.
Commits on Apr 8, 2011
  1. Rename var.

  2. @jasondavies
  3. 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
Something went wrong with that request. Please try again.