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

Function getContentFromModel

src/component/toolbox/feature/DataView.ts:168–182  ·  view source on GitHub ↗
(ecModel: GlobalModel)

Source from the content-addressed store, hash-verified

166}
167
168function getContentFromModel(ecModel: GlobalModel) {
169
170 const result = groupSeries(ecModel);
171
172 return {
173 value: zrUtil.filter([
174 assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis),
175 assembleOtherSeries(result.other)
176 ], function (str) {
177 return !!str.replace(/[\n\t\s]/g, '');
178 }).join('\n\n' + BLOCK_SPLITER + '\n\n'),
179
180 meta: result.meta
181 };
182}
183
184
185function trim(str: string) {

Callers 1

onclickMethod · 0.85

Calls 4

groupSeriesFunction · 0.85
assembleOtherSeriesFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…