MCPcopy Create free account
hub / github.com/CoderOpen/waimai / dataCombineStack

Function dataCombineStack

front/components/u-charts/u-charts.js:412–425  ·  view source on GitHub ↗
(series, len)

Source from the content-addressed store, hash-verified

410}
411
412function dataCombineStack(series, len) {
413 var sum = new Array(len);
414 for (var j = 0; j < sum.length; j++) {
415 sum[j] = 0;
416 }
417 for (var i = 0; i < series.length; i++) {
418 for (var j = 0; j < sum.length; j++) {
419 sum[j] += series[i].data[j];
420 }
421 }
422 return series.reduce(function(a, b) {
423 return (a.data ? a.data : a).concat(b.data).concat(sum);
424 }, []);
425}
426
427function getTouches(touches, opts, e) {
428 let x, y;

Callers 1

getYAxisTextListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected