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

Function categories

src/component/visualMap/PiecewiseModel.ts:494–507  ·  view source on GitHub ↗
(outPieceList)

Source from the content-addressed store, hash-verified

492 },
493
494 categories(outPieceList) {
495 const thisOption = this.option;
496 zrUtil.each(thisOption.categories, function (cate) {
497 // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。
498 // 是否改一致。
499 outPieceList.push({
500 text: this.formatValueText(cate, true),
501 value: cate
502 });
503 }, this);
504
505 // See "Order Rule".
506 normalizeReverse(thisOption, outPieceList);
507 },
508
509 pieces(outPieceList) {
510 const thisOption = this.option;

Callers

nothing calls this directly

Calls 3

normalizeReverseFunction · 0.85
formatValueTextMethod · 0.80
eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…