MCPcopy Index your code
hub / github.com/apache/echarts / init

Method init

src/chart/graph/GraphSeries.ts:255–270  ·  view source on GitHub ↗
(option: GraphSeriesOption)

Source from the content-addressed store, hash-verified

253 hasSymbolVisual = true;
254
255 init(option: GraphSeriesOption) {
256 super.init.apply(this, arguments as any);
257
258 const self = this;
259 function getCategoriesData() {
260 return self._categoriesData;
261 }
262 // Provide data for legend select
263 this.legendVisualProvider = new LegendVisualProvider(
264 getCategoriesData, getCategoriesData
265 );
266
267 this.fillDataTextStyle(option.edges || option.links);
268
269 this._updateCategoriesData();
270 }
271
272 mergeOption(option: GraphSeriesOption) {
273 super.mergeOption.apply(this, arguments as any);

Callers

nothing calls this directly

Calls 2

_updateCategoriesDataMethod · 0.95
fillDataTextStyleMethod · 0.80

Tested by

no test coverage detected