Permalink
Commits on Nov 13, 2014
Commits on Oct 23, 2014
  1. Merge pull request #2085 from rbu/locale-leading-zero-in-date

    mbostock committed Oct 23, 2014
    Use zero-padded day of the month in DE+FR
  2. Use zero-padded day of the month in DE+FR

    rbu committed Oct 23, 2014
    Currently, dates get formatted as "1.01.2014" which is inconsistent.
    Other locales use "01.01.2014" or comparable as well.
Commits on Oct 17, 2014
  1. Bump version.

    jasondavies committed Oct 17, 2014
  2. Simplify benchmark.

    mbostock committed Oct 17, 2014
  3. Use d3_numeric for !isNaN.

    mbostock committed Oct 17, 2014
  4. Rename `array1` to `numbers`.

    mbostock committed Oct 17, 2014
  5. Object.defineProperty is now required.

    mbostock committed Oct 17, 2014
    Since d3.map and d3.set now rely on Object.create(null), we also now rely on
    Object.defineProperty to create non-enumerable properties.
  6. Always escape __proto__ in d3.{map,set}.

    mbostock committed Oct 17, 2014
    Rather than conditionally checking for it and changing the class definition,
    just be pessimissitic and assume that it’s a bad idea to set __proto__.
  7. Merge branch 'optimize-data' into optimize-map-create-null

    mbostock committed Oct 17, 2014
    Conflicts:
    	src/selection/data.js
  8. Consolidate duplicate code.

    mbostock committed Oct 17, 2014
  9. Coerce quantile scale domain to numbers.

    mbostock committed Oct 17, 2014
    Also only coerce values to numbers once in d3.{mean,median}.
Commits on Oct 16, 2014
  1. Fix d3.format with explicit "-" sign.

    jasondavies committed Oct 16, 2014
    The default behaviour is to only use a minus sign for negative numbers.
    However, when this behaviour was explicitly specified using "-", this
    caused positive numbers to become negative.
    
    Fixes #2072.
  2. Fix d3.median: coerce strings to numbers.

    jasondavies committed Oct 16, 2014
    Fixes #2069.
  3. Fix d3.mean: coerce strings to numbers.

    jasondavies committed Oct 16, 2014
    Fixes #2067.
Commits on Oct 15, 2014
  1. Fix for "__proto__" in Object.create(null).

    mbostock committed Oct 15, 2014
    Blech.
Commits on Oct 14, 2014
  1. Reformat slightly.

    mbostock committed Oct 14, 2014
  2. Add @jfirebaugh’s benchmark.

    mbostock committed Oct 14, 2014
  3. Slight simplification.

    mbostock committed Oct 14, 2014
  4. Optimize d3.{map,set}.

    mbostock committed Oct 14, 2014
    Rather than always escaping keys with a null-prefix, only escape keys that can
    conflict with built-in properties (either on Object, d3_Map or d3_Set). By only
    prefixing these special keys, we can avoid the cost of constructing new strings
    in the common case.
    
    To check whether a key is special, we check whether it is in an empty map
    instance. In addition, keys that are already null-prefixed must be prefixed a
    second time to correctly unescape.
  5. Optimize selection.data(values, key)

    jfirebaugh committed Oct 14, 2014
    Preallocate the keyValues array and use a single Map with the
    sentinel value `true` to represent a previously seen key.
    
    Before:
    
    selection.data(values, key) (enter) 1.5ms/op.
    selection.data(values, key) (update) 1.7ms/op.
    
    After:
    
    selection.data(values, key) (enter) 0.81ms/op.
    selection.data(values, key) (update) 1.1ms/op.
Commits on Oct 13, 2014
  1. Fix d3.lab(d3.hcl(…)).

    mbostock committed Oct 13, 2014
    Due to the tests using two different copies of d3 (one loaded via require, and
    the other via smash), the instanceof check in the d3.lab constructor was
    returning false when testing for d3.hcl, and this constructor was therefore
    never tested.
Commits on Oct 10, 2014
  1. Save a whopping 12 bytes!

    jasondavies committed Oct 10, 2014
  2. No d3_zero.

    mbostock committed Oct 10, 2014