d3-array icon indicating copy to clipboard operation
d3-array copied to clipboard

Array manipulation, ordering, searching, summarizing, etc.

Results 23 d3-array issues
Sort by recently updated
recently updated
newest added

When plotting duration values getting nice ticks is difficult. If the duration is in milliseconds but scale to (say) hours the nice tick values turn weird. There are workarounds, but...

Would you be open to the addition of a generator function to generate all permutations of an array? e.g. I have one I ported from [Collections2.java · google/guava](https://github.com/google/guava/blob/f4b3f611c4e49ecaded58dcb49262f55e56a3322/guava/src/com/google/common/collect/Collections2.java#L622-L683) that I...

I tend to do something like this, but it’s pretty inefficient and requires integer weights: ```js var values = d3.merge(samples.map(s => d3.range(weight(s)).map(() => value(s)))); ``` A related question is how...

We have [transpose(*matrix*)](https://github.com/d3/d3-array/blob/master/README.md#transpose) which transposes the rows and columns of a *matrix* (an array of arrays). But you might want similar functionality to transpose an object whose values are arrays...

Imagine you’re joining a TSV file to a GeoJSON feature collection. A typical way of doing that might be to create a Map and then use *array*.forEach: ```js var map...

I think I've spotted a bug in d3's binary search implementations that arises due to the use of unsigned bit shifts for the midpoint computation, which is a good approach...

the geometric mean could also be useful for other types of calculations

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @​mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @​OlafConijn in...

dependencies

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3. Release notes Sourced from tough-cookie's releases. 4.1.3 Security fix for Prototype Pollution discovery in #282. This is a minor release, although output from the...

dependencies