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

Function wrapEncodeDef

src/chart/custom/CustomView.ts:950–961  ·  view source on GitHub ↗
(data: SeriesData<CustomSeriesModel>)

Source from the content-addressed store, hash-verified

948}
949
950function wrapEncodeDef(data: SeriesData<CustomSeriesModel>): WrapEncodeDefRet {
951 const encodeDef = {} as WrapEncodeDefRet;
952 each(data.dimensions, function (dimName) {
953 const dimInfo = data.getDimensionInfo(dimName);
954 if (!dimInfo.isExtraCoord) {
955 const coordDim = dimInfo.coordDim;
956 const dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];
957 dataDims[dimInfo.coordDimIndex] = data.getDimensionIndex(dimName);
958 }
959 });
960 return encodeDef;
961}
962
963function createOrUpdateItem(
964 api: ExtensionAPI,

Callers 1

makeRenderItemFunction · 0.85

Calls 3

getDimensionIndexMethod · 0.80
eachFunction · 0.50
getDimensionInfoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…