MCPcopy
hub / github.com/apache/echarts / findCommonDimension

Function findCommonDimension

test/lib/ecSimpleOptionPlayer.js:108–118  ·  view source on GitHub ↗
(optionWrapA, optionWrapB)

Source from the content-addressed store, hash-verified

106 transition: transitionOpt
107 });
108 function findCommonDimension(optionWrapA, optionWrapB) {
109 var metaA = getMapValue(dataMeta, optionWrapA.dataMetaKey);
110 var metaB = getMapValue(dataMeta, optionWrapB.dataMetaKey);
111 var uniqueDimensionB = metaB.uniqueDimension;
112 if (uniqueDimensionB != null && metaA.dimensions.indexOf(uniqueDimensionB) >= 0) {
113 return {
114 uniqueDimension: uniqueDimensionB,
115 dividingMethod: metaB.dividingMethod
116 };
117 }
118 }
119 };
120 SimpleOptionPlayer.prototype._getChart = function () {
121 return isFunction(this._chart) ? this._chart() : this._chart;

Callers 1

Calls 1

getMapValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…