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

Function dataEach

src/chart/lines/linesVisual.ts:47–59  ·  view source on GitHub ↗
(
            data: SeriesData<LinesSeriesModel, LineDataVisual>,
            idx: number
        )

Source from the content-addressed store, hash-verified

45 data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);
46
47 function dataEach(
48 data: SeriesData<LinesSeriesModel, LineDataVisual>,
49 idx: number
50 ): void {
51 const itemModel = data.getItemModel(idx) as Model<LinesDataItemOption>;
52 const symbolType = normalize(itemModel.getShallow('symbol', true));
53 const symbolSize = normalize(itemModel.getShallow('symbolSize', true));
54
55 symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);
56 symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);
57 symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);
58 symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);
59 }
60
61 return {
62 dataEach: data.hasItemOption ? dataEach : null

Callers

nothing calls this directly

Calls 4

getItemModelMethod · 0.80
getShallowMethod · 0.80
setItemVisualMethod · 0.80
normalizeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…