What do I have to import in order to use d3.maxIndex()
konradjurk opened this issue · 2 comments
konradjurk commented
I've installed and imported d3/dist/d3.min.js
and d3-array/dist/d3-array.min.js
.
However, there is no d3.maxIndex method, though the documentation suggests that it lives inside the d3-array project: https://github.com/d3/d3-array#maxIndex. What am I doing wrong?
d3@5.12.0
d3-array@1.2.4
konradjurk commented
Got it, it has been introduced in d3-array
v2.1.
Is there a reason why even the latest d3 release still attracts the outdated d3-array
release 1.2.4? https://github.com/d3/d3/blob/master/package.json#L46
mbostock commented
Yes, d3@6 has not been released yet. d3/d3#3333