Recent Releases of https://github.com/d3/d3-array

https://github.com/d3/d3-array -

  • Fix the return value of d3.medianIndex and d3.quantileIndex when the data contains any missing values. #275

- JavaScript
Published by mbostock about 3 years ago

https://github.com/d3/d3-array - v3.2.3

  • Fix threshold generation when input is empty or has no deviation. #271

- JavaScript
Published by mbostock over 3 years ago

https://github.com/d3/d3-array - v3.2.2

  • d3.ticks now tries harder to generate at least one tick. #264

- JavaScript
Published by mbostock over 3 years ago

https://github.com/d3/d3-array -

  • Fix mutation of user-owned thresholds in d3.bin. #263
  • Fix infinite loop when d3.quantile or d3.quickselect is called with invalid arguments. #262

- JavaScript
Published by mbostock over 3 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock about 4 years ago

https://github.com/d3/d3-array -

  • Fix incorrect behavior of d3.bisector when given an asymmetric comparator. #249 #250

- JavaScript
Published by mbostock over 4 years ago

https://github.com/d3/d3-array -

  • Fix crash in d3.bin. Thanks, @weiglemc! #248

- JavaScript
Published by mbostock over 4 years ago

https://github.com/d3/d3-array -

  • Fix off-by-one bin assignment due to rounding error in d3.bin. #247

- JavaScript
Published by mbostock over 4 years ago

https://github.com/d3/d3-array -

  • Significantly improve the performance of d3.bin. #220
  • Tweak the implementation of d3.thresholdScott. a8429c4a55c45b71a7502033925cda342c1fb662

- JavaScript
Published by mbostock over 4 years ago

https://github.com/d3/d3-array -

  • Fix the implementation of d3.thresholdScott. #246

- JavaScript
Published by mbostock over 4 years ago

https://github.com/d3/d3-array -

  • d3.rank can now take a comparator in addition to an accessor. #237
  • d3.rank, d3.sort, d3.bisector, and d3.groupSort now require comparators to have exactly two arguments. #238

- JavaScript
Published by mbostock almost 5 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 5 years ago

https://github.com/d3/d3-array -

  • Don’t mangle InternMap or InternSet in the generated UMD bundle.

- JavaScript
Published by mbostock almost 5 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 5 years ago

https://github.com/d3/d3-array -

  • Fix d3.sort, d3.bisector, and related methods to handle undefined order. #227 #217
  • Avoid anonymous default exports (to assist hot module reload tools). #226
  • Update dependencies.

- JavaScript
Published by mbostock almost 5 years ago

https://github.com/d3/d3-array -

  • Update dependencies.
  • Make build reproducible.

- JavaScript
Published by mbostock about 5 years ago

https://github.com/d3/d3-array -

This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.

- JavaScript
Published by mbostock about 5 years ago

https://github.com/d3/d3-array -

  • Fix rounding error in d3.ticks. #199

- JavaScript
Published by mbostock over 5 years ago

https://github.com/d3/d3-array -

  • Add d3.fcumsum. Thanks, @fil!
  • Fix crash passing null to d3.InternMap or d3.InternSet constructor.

- JavaScript
Published by mbostock over 5 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 5 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 5 years ago

https://github.com/d3/d3-array -

  • Fix last bin with d3.bin when the values are not numbers.
  • Fix last bin with d3.bin when the tick increment is fractional.

- JavaScript
Published by mbostock over 5 years ago

https://github.com/d3/d3-array -

  • d3.sort now may accept an accessor. #183
  • Fix zero-width last bin with d3.bin. #177

- JavaScript
Published by mbostock over 5 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 6 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 6 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 6 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 6 years ago

https://github.com/d3/d3-array - v2.5.1

  • Fix: d3.ticks sometimes incorrectly returned ticks outside the domain (#162)

- JavaScript
Published by Fil almost 6 years ago

https://github.com/d3/d3-array - v2.5.0

- JavaScript
Published by Fil almost 6 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 6 years ago

https://github.com/d3/d3-array -

  • Greatly improve the performance of d3.median. Thanks, @Fil and @jheer!

- JavaScript
Published by mbostock almost 7 years ago

https://github.com/d3/d3-array -

  • Avoid an array.sort bug in Safari. #123
  • Fix bin thresholds to ignore NaN input.

- JavaScript
Published by mbostock almost 7 years ago

https://github.com/d3/d3-array -

  • Fix d3.count to ignore non-number input.

- JavaScript
Published by mbostock almost 7 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock almost 7 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock about 7 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock about 7 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 7 years ago

https://github.com/d3/d3-array -

  • Fix an infinite loop in d3.cross. Thanks, @jviide!

- JavaScript
Published by mbostock over 7 years ago

https://github.com/d3/d3-array -

  • Optimize and fix iteration in d3.cross. Thanks, @jviide!

- JavaScript
Published by mbostock over 7 years ago

https://github.com/d3/d3-array -

See https://observablehq.com/@d3/d3-array-2-0 for details.

Note: this release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-array 1.x or use a transpiler.

- JavaScript
Published by mbostock over 7 years ago

https://github.com/d3/d3-array -

  • Housekeeping.

- JavaScript
Published by mbostock almost 8 years ago

https://github.com/d3/d3-array -

  • Update dependencies.

- JavaScript
Published by mbostock almost 8 years ago

https://github.com/d3/d3-array -

  • Fix upper histogram bin threshold in some cases. Thanks, @hiraku! (#65)

- JavaScript
Published by mbostock almost 8 years ago

https://github.com/d3/d3-array -

  • Fix d3.ticks when start is equal to stop and count is positive. (d3/d3-scale#113)

- JavaScript
Published by mbostock almost 9 years ago

https://github.com/d3/d3-array -

  • Add d3.tickIncrement. (#45)
  • Fix d3.ticks to always return the most-precise representable values in IEEE 754!
  • Fix histogram.thresholds to retain thresholds equal to the domain’s upper bound. (#54)
  • Document that histogram.thresholds ignores thresholds outside the domain’s bounds.
  • Improve the readability of the code.

- JavaScript
Published by mbostock over 9 years ago

https://github.com/d3/d3-array -

  • Update dependencies.

- JavaScript
Published by mbostock over 9 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 9 years ago

https://github.com/d3/d3-array -

  • Update dependencies.

- JavaScript
Published by mbostock over 9 years ago

https://github.com/d3/d3-array -

  • Update dependencies.

- JavaScript
Published by mbostock over 9 years ago

https://github.com/d3/d3-array -

  • Add module entry point to package.json.

- JavaScript
Published by mbostock almost 10 years ago

https://github.com/d3/d3-array -

  • First stable release!

Changes since D3 3.x

The new d3.scan method performs a linear scan of an array, returning the index of the least element according to the specified comparator. This is similar to d3.min and d3.max, except you can use it to find the position of an extreme element, rather than just calculate an extreme value.

``` js var data = [ {name: "Alice", value: 2}, {name: "Bob", value: 3}, {name: "Carol", value: 1}, {name: "Dwayne", value: 5} ];

var i = d3.scan(data, function(a, b) { return a.value - b.value; }); // 2 data[i]; // {name: "Carol", value: 1} ```

The new d3.ticks and d3.tickStep methods are useful for generating human-readable numeric ticks. These methods are a low-level alternative to continuous.ticks from d3-scale. The new implementation is also more accurate, returning the optimal number of ticks as measured by relative error.

js var ticks = d3.ticks(0, 10, 5); // [0, 2, 4, 6, 8, 10]

The d3.range method no longer makes an elaborate attempt to avoid floating-point error when step is not an integer. The returned values are strictly defined as start + i * step, where i is an integer. (Learn more about floating point math.) d3.range returns the empty array for infinite ranges, rather than throwing an error.

The method signature for optional accessors has been changed to be more consistent with array methods such as array.forEach: the accessor is passed the current element (d), the index (i), and the array (data), with this as undefined. This affects d3.min, d3.max, d3.extent, d3.sum, d3.mean, d3.median, d3.quantile, d3.variance and d3.deviation. The d3.quantile method previously did not take an accessor. Some methods with optional arguments now treat those arguments as missing if they are null or undefined, rather than strictly checking arguments.length.

The new d3.histogram API replaces d3.layout.histogram. Rather than exposing bin.x and bin.dx on each returned bin, the histogram exposes bin.x0 and bin.x1, guaranteeing that bin.x0 is exactly equal to bin.x1 on the preceeding bin. The “frequency” and “probability” modes are no longer supported; each bin is simply an array of elements from the input data, so bin.length is equal to D3 3.x’s bin.y in frequency mode. To compute a probability distribution, divide the number of elements in each bin by the total number of elements.

The histogram.range method has been renamed histogram.domain for consistency with scales. The histogram.bins method has been renamed histogram.thresholds, and no longer accepts an upper value: n thresholds will produce n + 1 bins. If you specify a desired number of bins rather than thresholds, d3.histogram now uses d3.ticks to compute nice bin thresholds. In addition to the default Sturges’ formula, D3 now implements the Freedman-Diaconis rule and Scott’s normal reference rule.

See CHANGES for all D3 changes since 3.x.

- JavaScript
Published by mbostock about 10 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock about 10 years ago

https://github.com/d3/d3-array -

  • Export to the global d3 in vanilla environments (d3/d3#2840).

- JavaScript
Published by mbostock about 10 years ago

https://github.com/d3/d3-array -

  • Generate anonymous AMD.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Move keys, values, entries, map, set, and nest to d3-collection.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Optimize sum.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Improve the README.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Fix name of generated d3_array global.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Accessor functions now take the array as the third argument instead of setting the this context.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Define d3-arrays module (and d3_arrays global), not arrays.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Replace map.forEach(function(key, value)) with map.each(function(value, key)) (#14).
  • Add set(set) copy constructor (#15).

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Removed range rounding hack. (#5)
  • Adjusted the package.json definition for npm users.

- JavaScript
Published by mbostock over 10 years ago

https://github.com/d3/d3-array -

  • Remove ES6 Map polyfill.

- JavaScript
Published by mbostock almost 11 years ago

https://github.com/d3/d3-array -

  • Add map and set collections.

- JavaScript
Published by mbostock almost 11 years ago

https://github.com/d3/d3-array -

- JavaScript
Published by mbostock about 11 years ago