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

Method update

src/chart/parallel/ParallelView.ts:90–102  ·  view source on GitHub ↗
(newDataIndex: number, oldDataIndex: number)

Source from the content-addressed store, hash-verified

88 }
89
90 function update(newDataIndex: number, oldDataIndex: number) {
91 const line = oldData.getItemGraphicEl(oldDataIndex) as graphic.Polyline;
92 dataGroup.add(line);
93
94 const points = createLinePoints(data, newDataIndex, dimensions, coordSys);
95 data.setItemGraphicEl(newDataIndex, line);
96
97 graphic.updateProps(line, {shape: {points: points}}, seriesModel, newDataIndex);
98
99 saveOldStyle(line);
100
101 updateElCommon(line, data, newDataIndex, seriesScope);
102 }
103
104 function remove(oldDataIndex: number) {
105 const line = oldData.getItemGraphicEl(oldDataIndex);

Callers

nothing calls this directly

Calls 6

saveOldStyleFunction · 0.90
createLinePointsFunction · 0.85
updateElCommonFunction · 0.85
getItemGraphicElMethod · 0.80
setItemGraphicElMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected