d3-array
d3-array copied to clipboard
Array manipulation, ordering, searching, summarizing, etc.
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
Related #90.
Adds optional `base` value to `ticks`, `tickIncrement` and `tickStep` functions. Using default `base` value of `10` results in no functional changes to existing code. These changes enable rendering linear ticks...
I find it unintuitive that `bisectCenter` can return a value that is less than both `bisectLeft` and `bisectRight`. Based on how `bisectLeft` and `bisectRight` work, I would expect `bisectCenter` to...
d3-array currently uses function accessors, e.g. ```js d3.median(data, d => d.foo) ``` What if a string could be used instead of an accessor for convenience? ```js d3.median(data, "foo") ``` There’s...
I would like to propose an added option to allow returning ticks on a binary basis from the `ticks` method. https://github.com/d3/d3-array/blob/6860b190118e29a08fe9848b97aa1cbe967172f2/src/ticks.js#L5-L35 I imagine this could be an additional parameter like...
What are your thoughts on adding data reshape functions similar to the [melt](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.melt.html) and [wide_to_long](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.wide_to_long.html) functions in pandas or [pivoting](https://tidyr.tidyverse.org/articles/pivot.html), [gather](https://tidyr.tidyverse.org/reference/gather.html) and [spread](https://tidyr.tidyverse.org/reference/spread.html) in the tidyverse? It's a very common...
In the README we often have this sentence about the accessor to d3.extent and other reduction methods: "An optional *accessor* function may be specified, which is equivalent to calling Array.from...
see the implementation in https://observablehq.com/@fil/d3-gmdn
d3.rollmean, d3.rollmin, d3.rollmax (median? sum? exponential? geometric?) see https://www.rdocumentation.org/packages/zoo/versions/1.8-8/topics/rollmean API could be d3.rollmean(steps, values, [accessor]) (?)