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

Function objectRowsCollectDimensions

src/data/Source.ts:403–410  ·  view source on GitHub ↗
(data: OptionSourceDataObjectRows)

Source from the content-addressed store, hash-verified

401}
402
403function objectRowsCollectDimensions(data: OptionSourceDataObjectRows): DimensionDefinitionLoose[] {
404 let firstIndex = 0;
405 let obj;
406 while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line
407 if (obj) {
408 return keys(obj);
409 }
410}
411
412// Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],
413// which is reasonable. But dimension name is duplicated.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…