d3 / d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

Home Page:https://d3js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What does mean the sample code?

dimat2 opened this issue · comments

const series = d3.stack()
.keys(d3.union(this.data.map(d => d.age))) // distinct series keys, in input order
.value(([,D], key, ) => D.get(key).population) // get value for each series key and stack
(d3.index(this.data, d => d.state, d => d.age)); // group by stack then series key

I don't understand what does mean the value() function?

Please help.