Permalink
Commits on Apr 14, 2011
  1. Merge branch 'release'

    mbostock committed Apr 14, 2011
  2. Merge branch 'box' into release

    mbostock committed Apr 14, 2011
  3. Remove blank line.

    mbostock committed Apr 14, 2011
  4. Fix some ordering issues with transitions.

    By default, `append` will go to the end. This could cause the center line to be
    rendered on top of the box rect if whiskers were removed then re-added. By using
    the `insert` operator, we can preserve the correct order.
    mbostock committed Apr 14, 2011
  5. Add d3.svg.diagonal.

    This is a utility for creating a Bézier curve between opposite corners of a
    rectangle. This is commonly used to draw smooth curves connecting parent and
    child nodes in a hierarchical node-link diagram. A projection may be specified
    which allows the curve to be transformed from polar coordinates.
    
    This commit also changes the semantics of the recently-added `links` method,
    such that the objects have `source` and `target` properties that match the
    default diagonal format.
    mbostock committed Apr 14, 2011
  6. Add `links` methods to cluster & tree.

    This method can be used to generate an array of parent+child objects for a given
    array of nodes. This is convenient for drawing paths from parent to child in
    node-link diagrams.
    mbostock committed Apr 14, 2011
  7. Simplify cluster layout.

    The `cluster` layout is now more similar to the `tree` layout, using a
    separation function rather than a group property. In addition, the breadth and
    depth properties are replaced with x and y, respectively, and scaled according
    to the size of the layout.
    
    I've updated the examples to make them more consistent, as well, including the
    pretty Bézier curves. In a future commit I'd like to take some of the duplicate
    code in the examples and move that into reusable methods.
    mbostock committed Apr 14, 2011
  8. Text transitions.

    You can now use the `text` operator on transitions, which has the same effect as
    setting the text value at the start of the transition. This is nice if you have
    a delayed transition, and avoids a common gotcha.
    
    This commit also simplifies the implementation of the `text` operator using the
    standard `textContent` property. This isn't supported on IE8-, but we could
    potentially add support in the future using `innerText`.
    mbostock committed Apr 14, 2011
  9. Add test for interpolate.

    mbostock committed Apr 14, 2011
  10. Better box chart transitions.

    Preserving object constancy across transitions is tricky! For example, what
    happens if we remove the whiskers in a transition? How do we join outliers? This
    commit makes a few assumptions explicit:
    
    1. The `quartiles` function must return exactly three elements. This property
    must be specified as a function.
    
    2. The `whiskers` function must return exactly 2 elements, or null if no
    whiskers are to be displayed. This property must be specified as a function.
    
    3. The `domain` function must return exactly 2 elements, or null if the default
    domain should be used. This property can be specified either as a constant or as
    a function.
    
    We could generalize this chart to support more than two whiskers, but it doesn't
    seem urgent, and it would complicate the transition if the number of whiskers
    changes. In a related change, the `whiskers` function does not receive a third
    argument containing the quartiles; instead, this is made available by the
    `quartiles` property on the values array (the first argument).
    
    The outliers are joined using the `Number` key function. The outlier data is now
    stored as indices; this allows reasonable object constancy across transitions
    with outliers. Similarly, the tick labels for the quartiles are whiskers are now
    separated, such that the whisker labels can be added or removed without spurious
    transition.
    mbostock committed Apr 14, 2011
  11. Fix a bug in d3.interpolateString.

    The regular expression wasn't being reset, so we weren't always finding numbers!
    mbostock committed Apr 14, 2011
Commits on Apr 13, 2011
  1. Fix quartile calculation.

    The outliers were being incorrectly excluded when computing the quartiles.  I've
    also added a +/-1.5 IQR whiskers computation for the Morley-Michelson example,
    so it replicates the R plot exactly.
    jasondavies committed Apr 13, 2011
  2. Minor optimisations.

    jasondavies committed Apr 13, 2011
  3. Optimise; and fix typo.

    jasondavies committed Apr 13, 2011
  4. Remove unused title svg:g.

    jasondavies committed Apr 13, 2011
  5. Fix randomize button.

    jasondavies committed Apr 13, 2011
  6. Add Michelson-Morley data for box plot example.

    Source: R statistical project
    Original source: A. J. Weekes (1986) A Genstat Primer. London: Edward Arnold.
    jasondavies committed Apr 13, 2011
  7. Rename "boxplot" to "box".

    jasondavies committed Apr 13, 2011
  8. Fix central dashed line.

    jasondavies committed Apr 13, 2011
  9. Remove `outlierSymbol` property.

    Circles are simpler.
    jasondavies committed Apr 13, 2011
  10. Make quartiles computation configurable.

    The `quartiles` property takes the sorted data array (excluding outliers) and
    returns the three quartiles.
    jasondavies committed Apr 13, 2011
  11. Display outliers.

    The symbol can be specified using the `outlierSymbol` property, which specifies
    the `d` attribute for an SVG path.
    jasondavies committed Apr 13, 2011
  12. Add `whiskers` property to box plot.

    This specifies a function that takes the sorted data array, and returns an array
    of datum positions that should marked with whiskers.  The default implementation
    is to return `[0, length-1]` i.e. the minimum and maximum.
    
    Data outside of the whiskers are considered outliers, and are not included in
    the quartile calculation.
    jasondavies committed Apr 13, 2011
  13. Replace `sort` property with `value`.

    Much more useful, as we'll always want to sort by ascending value anyway.
    jasondavies committed Apr 13, 2011
  14. Add function support to the `domain` property.

    This allows us to specify different domains across multiple box plots.  Thanks
    Mike for the suggestion!
    jasondavies committed Apr 13, 2011
  15. Expose `d3_functor` as `d3.functor`.

    This is so it can be used in other modules such as the charts module.
    jasondavies committed Apr 13, 2011
  16. Add boxplot chart.

    jasondavies committed Apr 13, 2011
Commits on Apr 12, 2011
  1. put Makefile back

    NelsonMinar committed Apr 12, 2011