D3-graph-gallery icon indicating copy to clipboard operation
D3-graph-gallery copied to clipboard

tidy data stack keys

Open wallacemoraes opened this issue 3 years ago • 0 comments

hello, Please, why didn't you use people's names? Where do these numbers come from? var mygroup = [1,2,3] How can I use the names instead of numbers? Thank you https://www.d3-graph-gallery.com/graph/stackedarea_basic.html // Stack the data: each group will be represented on top of each other var mygroups = ["Helen", "Amanda", "Ashley"] // list of group names var mygroup = [1,2,3] // list of group names var stackedData = d3.stack() .keys(mygroup) .value(function(d, key){ return d.values[key].n }) (sumstat)

wallacemoraes avatar Mar 08 '21 03:03 wallacemoraes