d3.zip()

d3.zip(arrays…)

Returns an array of arrays, where the ith array contains the ith element from each of the argument arrays. The returned array is truncated in length to the shortest array in arrays. If arrays contains only a single array, the returned array contains one-element arrays. With no arguments, the returned array is empty.

d3.zip([1, 2], [3, 4]); // returns [[1, 3], [2, 4]]
doc_D3_Js
2016-11-24 10:27:37
Comments
Leave a Comment

Please login to continue.