MCPcopy Index your code
hub / github.com/apache/echarts / createCollectionResultLine

Function createCollectionResultLine

test/lib/ecSimpleTransform.js:222–237  ·  view source on GitHub ↗
(upstream, dataIndex, collectionDimInfoList, groupByDimInfo, groupByVal)

Source from the content-addressed store, hash-verified

220 return methodInternal;
221 }
222 var createCollectionResultLine = function (upstream, dataIndex, collectionDimInfoList, groupByDimInfo, groupByVal) {
223 var newLine = [];
224 for (var i = 0; i < collectionDimInfoList.length; i++) {
225 var dimInfo = collectionDimInfoList[i];
226 var collectionInfoList = dimInfo.collectionInfoList;
227 for (var j = 0; j < collectionInfoList.length; j++) {
228 var collectionInfo = collectionInfoList[j];
229 newLine[collectionInfo.indexInLine] = +lineCreator[collectionInfo.method](upstream, dataIndex, dimInfo, groupByDimInfo, groupByVal);
230 }
231 if (dimInfo.needGatherValues) {
232 var val = upstream.retrieveValue(dataIndex, dimInfo.indexInUpstream);
233 dimInfo.gatherValue(groupByDimInfo, groupByVal, val);
234 }
235 }
236 return newLine;
237 };
238 var updateCollectionResultLine = function (upstream, dataIndex, targetLine, collectionDimInfoList, groupByDimInfo, groupByVal) {
239 for (var i = 0; i < collectionDimInfoList.length; i++) {
240 var dimInfo = collectionDimInfoList[i];

Callers

nothing calls this directly

Calls 1

retrieveValueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…