Permalink
Commits on May 22, 2011
  1. Merge branch 'release'

    mbostock committed May 22, 2011
  2. Simplify new format types.

    mbostock committed May 22, 2011
    I removed the `F`, `G` and `E` types, since these are redundant and we don't
    have to be slavishly-compatible with Python. Also, I simplified the
    implementation of `g`, `e` and `f` so that they use JavaScript's built-in
    `toPrecision`, `toExponential` and `toFixed`, respectively. The existing
    implementations weren't exactly compatible with Python, anyway, so we might as
    well default to using JavaScript's built-ins.
Commits on May 21, 2011
  1. Histogram improvements.

    mbostock committed May 21, 2011
    Rename `ticks` to `bins` to match numpy, matplotlib, and Protovis. Also allow
    the bins to be specified simply as a count, in which case the range is divided
    uniformly into the specified number of bins.
    
    The histogram layout now also takes a `range` property, which specifies the
    minimum and maximum value of the histogram rather than implicitly computing it
    from the values, which is nice if you expect values to fall in a specific range,
    such as [0,1].
  2. Slightly shorter.

    mbostock committed May 21, 2011
  3. Add d3.bisect.

    mbostock committed May 21, 2011
    This is similar to pv.search, but more closely modeled after Python's bisect
    methods to provide the desired flexibility in searching slices of arrays. This
    includes good tests for bisect, and better tests for polylinear and quantile
    scales (both of which now use bisect).
Commits on May 20, 2011
  1. Add support for F, r and p format types.

    mbostock committed May 20, 2011
    `F` is an alias for `f`. `r` is a new format type that rounds the input number,
    treating the precision field as the desired number of significant digits. This
    is similar to `g`, except it never uses exponent notation. `p` is equivalent to
    `r`, except it outputs a percentage, as with `%`.
  2. Add d3.round.

    mbostock committed May 20, 2011
  3. Update unit tests.

    jasondavies committed May 20, 2011
Commits on May 19, 2011
  1. Add unit test for exponential notation.

    jasondavies committed May 19, 2011
    Also fix a bug in precision interpretation.
  2. Additional types for d3.format.

    jasondavies committed May 19, 2011
     * "e": exponent notation.
     * "E": same as "e", except uses "E" as a separator.
     * "g": precision is interpreted as signficant digits.
     * "G": same as "g" but uses "E" instead of "e".
     * "n": equivalent to ",g".
     * "%": percentages.
    
    Fixes #149.
Commits on May 12, 2011
  1. Merge branch 'release'

    mbostock committed May 12, 2011
  2. Propagate touch identifier in d3.svg.touches.

    mbostock committed May 12, 2011
    Also, add a fun little example demonstrating multi-touch.
  3. Simplify touches code slightly.

    mbostock committed May 12, 2011
  4. Rewrite stack layout for flexibility.

    mbostock committed May 12, 2011
    The stack layout can now operate on arbitrary data structures, rather than
    requiring a specific input format. To do this, you can now specify functions to
    access values per series, along with x- and y-coordinates.
    
    One tricky thing is that the stack layout needs to be able to write the stacked
    values back into the data; this is accomplished using the customizable `out`
    function. This function takes three arguments: the current datum (d), the offset
    value (y0), and the y value. The y value is unchanged unless the "expand" offset
    is used.
    
    This commit also allows you to specify arbitrary functions for order and offset
    computation, in addition to the built-in methods supported previously.
  5. Add d3.permute.

    mbostock committed May 12, 2011
  6. Revert "Remove usage of d3_array for efficiency."

    jasondavies committed May 12, 2011
    This reverts commit 1bb3e9b.
    
    The performance difference is negligible, and using d3_array results in smaller
    code.
  7. Remove usage of d3_array for efficiency.

    jasondavies committed May 12, 2011
    This avoids unnecessarily creating a new array for every touch event.
Commits on May 11, 2011
Commits on May 10, 2011
  1. Add touch support to `d3.svg.mouse`.

    jasondavies committed May 10, 2011
    This doesn't quite seem like the right place for it, but it seems to work when
    using "touchstart", "touchmove" and "touchend" handlers without any adverse
    effects on "true" mouse event handlers.
    
    See <http://www.jasondavies.com/apollonian-gasket/> to see an example of
    combined touch/mouse handlers working with this change.
Commits on May 9, 2011
  1. Simplify binary search.

    jasondavies committed May 9, 2011
  2. Merge branch 'polylinear'

    mbostock committed May 9, 2011
  3. Delete d3.search.

    mbostock committed May 9, 2011
    Not needed for now, since I opted to create customized versions internally.
Commits on May 8, 2011
  1. Rename a variable.

    mbostock committed May 8, 2011
  2. Refactor polylinear scales.

    mbostock committed May 8, 2011
    This commit adds a d3_uninterpolate method (private, for now), which is
    essentially the inverse of d3.interpolate. It's used to map a value in the
    domain to the unit range [0,1], which can then be passed to an interpolator.
Commits on May 7, 2011
  1. Merge branch 'release'

    mbostock committed May 7, 2011