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

Interface SeriesModel

src/model/Series.ts:82–147  ·  view source on GitHub ↗

* NOTICE: * - prefix `__` can be used to avoid conflicts with possible outside subclasses. * - All of these methods are optional - null-check is needed.

Source from the content-addressed store, hash-verified

80 * - All of these methods are optional - null-check is needed.
81 */
82interface SeriesModel {
83
84 preventIncremental(): boolean;
85
86 __preparePipelineContext(
87 view: ChartView,
88 pipeline: Pick<Pipeline, 'progressiveEnabled' | 'threshold'>
89 ): PipelineContext;
90
91 /**
92 * If `true`, a default `startValue` (`0`) is used if not specified in ec option,
93 * and axis extent will union it.
94 * Otherwise, `startValue` will be included in the union of axis extent only if
95 * it is explicitly specified in ec option.
96 *
97 * @see {AxisBaseOptionCommon['startValue']} for more info.
98 */
99 __requireStartValue(axis: Axis): boolean;
100
101 /**
102 * See tooltip.
103 * Implement it if needed.
104 * @return Point of tooltip. null/undefined can be returned.
105 */
106 getTooltipPosition(dataIndex: number): number[];
107
108 /**
109 * Get data indices for show tooltip content. See tooltip.
110 * Implement it if needed.
111 */
112 getAxisTooltipData(
113 dim: DimensionName[],
114 value: ScaleDataValue,
115 baseAxis: Axis
116 ): {
117 dataIndices: number[],
118 nestestValue: any
119 };
120
121 /**
122 * Get position for marker
123 */
124 getMarkerPosition(
125 value: ScaleDataValue[],
126 dims?: typeof dimPermutations[number],
127 startingAtTick?: boolean
128 ): number[];
129
130 /**
131 * Get legend icon symbol according to each series type
132 */
133 getLegendIcon(opt: LegendIconParams): ECSymbol | Group;
134
135 /**
136 * See `component/brush/selector.js`
137 * Defined the brush selector for this series.
138 */
139 brushSelector(

Callers 12

restorePipelinesMethod · 0.65
updateStreamModesMethod · 0.65
findPointFromSeriesFunction · 0.65
buildPayloadsBySeriesFunction · 0.65
updateMarkerLayoutFunction · 0.65
getSingleMarkerEndPointFunction · 0.65
_createItemMethod · 0.65
checkInRangeFunction · 0.65
setDecalFunction · 0.65
_renderDataShadowMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…