MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / d3_layout_stackMaxIndex

Function d3_layout_stackMaxIndex

d3-3.2.8/d3.js:6025–6034  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

6023 return y0;
6024 }
6025 function d3_layout_stackMaxIndex(array) {
6026 var i = 1, j = 0, v = array[0][1], k, n = array.length;
6027 for (;i < n; ++i) {
6028 if ((k = array[i][1]) > v) {
6029 j = i;
6030 v = k;
6031 }
6032 }
6033 return j;
6034 }
6035 function d3_layout_stackReduceSum(d) {
6036 return d.reduce(d3_layout_stackSum, 0);
6037 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected