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

Class SeriesModel

src/model/Series.ts:149–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149class SeriesModel<Opt extends SeriesOption = SeriesOption> extends ComponentModel<Opt> {
150
151 // [Caution]: Because this class or desecendants can be used as `XXX.extend(subProto)`,
152 // the class members must not be initialized in constructor or declaration place.
153 // Otherwise there is bad case:
154 // class A {xxx = 1;}
155 // enableClassExtend(A);
156 // class B extends A {}
157 // var C = B.extend({xxx: 5});
158 // var c = new C();
159 // console.log(c.xxx); // expect 5 but always 1.
160
161 // @readonly
162 type: string;
163
164 // Should be impleneted in subclass.
165 defaultOption: SeriesOption;
166
167 // @readonly
168 seriesIndex: number;
169
170 // Will be injected.
171 // @see `injectCoordinateSystem`
172 coordinateSystem: CoordinateSystem;
173
174 // Injected outside
175 dataTask: SeriesTask;
176 // Injected outside
177 // CAUTION: Can read from it; but never write to it!
178 pipelineContext: PipelineContext;
179
180 // ---------------------------------------
181 // Props to tell visual/style.ts about how to do visual encoding.
182 // ---------------------------------------
183 // legend visual provider to the legend component
184 legendVisualProvider: LegendVisualProvider;
185
186 // Access path of style for visual
187 visualStyleAccessPath: string;
188 // Which property is treated as main color. Which can get from the palette.
189 visualDrawType: 'fill' | 'stroke';
190 // Style mapping rules.
191 visualStyleMapper: ReturnType<typeof makeStyleMapper>;
192 // If ignore style on data. It's only for global visual/style.ts
193 // Enabled when series it self will handle it.
194 ignoreStyleOnData: boolean;
195 // If do symbol visual encoding
196 hasSymbolVisual: boolean;
197 // Default symbol type.
198 defaultSymbol: string;
199 // Symbol provide to legend.
200 legendIcon: string;
201
202 // It will be set temporary when cross series transition setting is from setOption.
203 // TODO if deprecate further?
204 [SERIES_UNIVERSAL_TRANSITION_PROP]: boolean;
205
206 // ---------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…