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

Method _updateCategoriesData

src/chart/graph/GraphSeries.ts:386–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384 }
385
386 _updateCategoriesData() {
387 const categories = zrUtil.map(this.option.categories || [], function (category) {
388 // Data must has value
389 return category.value != null ? category : zrUtil.extend({
390 value: 0
391 }, category);
392 });
393 const categoriesData = new SeriesData(['value'], this);
394 categoriesData.initData(categories);
395
396 this._categoriesData = categoriesData;
397
398 this._categoriesModels = categoriesData.mapArray(function (idx) {
399 return categoriesData.getItemModel(idx);
400 });
401 }
402
403 isAnimationEnabled() {
404 return super.isAnimationEnabled()

Callers 2

initMethod · 0.95
mergeOptionMethod · 0.95

Calls 4

initDataMethod · 0.95
mapArrayMethod · 0.95
getItemModelMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected