Updates to d3

This commit is contained in:
Matt Traynham
2015-02-23 14:15:12 -05:00
parent 2272849a06
commit 516266a0ac
Vendored
+3 -2
View File
@@ -702,8 +702,9 @@ declare module D3 {
* Parse a delimited string into objects using the header row.
*
* @param string delimited formatted string to parse
* @param accessor to modify properties of each row
*/
parse(string: string): any[];
parse(string: string, accessor?: (row: any) => any): any[];
/**
* Parse a delimited string into tuples, ignoring the header row.
*
@@ -849,7 +850,7 @@ declare module D3 {
sortKeys(comparator: (d1: any, d2: any) => number): Nest;
sortValues(comparator: (d1: any, d2: any) => number): Nest;
rollup(rollupFunction: (data: any, index: number) => any): Nest;
map(values: any[]): any;
map(values: any[], mapType?: any): any;
entries(values: any[]): NestKeyValue[];
}