MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / guessOrdinal

Function guessOrdinal

libs/echarts/echarts.simple.js:21104–21113  ·  view source on GitHub ↗

* The rule should not be complex, otherwise user might not * be able to known where the data is wrong. * The code is ugly, but how to make it neat? * * @param {module:echars/data/Source} source * @param {number} dimIndex * @return {BE_ORDINAL} guess result.

(source, dimIndex)

Source from the content-addressed store, hash-verified

21102 * @return {BE_ORDINAL} guess result.
21103 */
21104function guessOrdinal(source, dimIndex) {
21105 return doGuessOrdinal(
21106 source.data,
21107 source.sourceFormat,
21108 source.seriesLayoutBy,
21109 source.dimensionsDefine,
21110 source.startIndex,
21111 dimIndex
21112 );
21113}
21114
21115// dimIndex may be overflow source data.
21116// return {BE_ORDINAL}

Callers 1

completeDimensionsFunction · 0.70

Calls 1

doGuessOrdinalFunction · 0.70

Tested by

no test coverage detected