mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Fix type of keyFunction in d3.nest().key(keyFunction)
This commit is contained in:
+1
-1
@@ -788,7 +788,7 @@ function populationPyramid() {
|
||||
// Produce a map from year and birthyear to [male, female].
|
||||
data = d3.nest()
|
||||
.key(function (d) { return d.year; } )
|
||||
.key(function (d) { return d.year - d.age; } )
|
||||
.key(function (d) { return '' + (d.year - d.age); } )
|
||||
.rollup(function (v) { return v.map(function (d) { return d.people; } ); } )
|
||||
.map(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user