After using d3.nest() to categorize my data, I ran into an issue.
d3.nest()
.key(function(d) { return d[indexCateCol]; })
.entries(irisData);`
I'm now wondering how I can create an array of values from a specific attribute that interests me.
(3) [Object, Object, Object]
0:Object
key:"setosa"
values:Array(50)
0:Array(5)
0:5.1
1:3.5
2:1.4
3:0.2
4:"setosa"
length:5
1:Array(5)
2:Array(5)`
To clarify, what I aim to achieve is arrays containing the column data for each Species, such as [5.1, 4.9, 4.7, 4.6, ...] for "Sepal.Length" or extracting '0: 5.1' from each value array.
I presume I could iterate through and retrieve these arrays manually, but I wonder if there are more JavaScript-friendly approaches available.