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

Function updateCollectionResultLine

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

Source from the content-addressed store, hash-verified

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];
241 var collectionInfoList = dimInfo.collectionInfoList;
242 for (var j = 0; j < collectionInfoList.length; j++) {
243 var collectionInfo = collectionInfoList[j];
244 var indexInLine = collectionInfo.indexInLine;
245 targetLine[indexInLine] = +lineUpdater[collectionInfo.method](targetLine[indexInLine], upstream, dataIndex, dimInfo, groupByDimInfo, groupByVal);
246 }
247 if (dimInfo.needGatherValues) {
248 var val = upstream.retrieveValue(dataIndex, dimInfo.indexInUpstream);
249 dimInfo.gatherValue(groupByDimInfo, groupByVal, val);
250 }
251 }
252 };
253 var createFinalResultLine = function (upstream, dataIndex, finalResultDimInfoList, groupByDimInfo, groupByVal) {
254 var newLine = [];
255 for (var i = 0; i < finalResultDimInfoList.length; 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…