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

Class SeriesData

src/data/SeriesData.ts:152–1500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150let makeIdFromName: (data: SeriesData, idx: number) => void;
151
152class SeriesData<
153 HostModel extends Model = Model,
154 Visual extends DefaultDataVisual = DefaultDataVisual
155> {
156
157 readonly type = 'list';
158
159 /**
160 * Name of dimensions list of SeriesData.
161 *
162 * @caution Carefully use the index of this array.
163 * Because when DataStore is an extra high dimension(>30) dataset. We will only pick
164 * the used dimensions from DataStore to avoid performance issue.
165 */
166 readonly dimensions: SeriesDimensionName[];
167
168 // Information of each data dimension, like data type.
169 private _dimInfos: Record<SeriesDimensionName, SeriesDimensionDefine>;
170
171 private _dimOmitted = false;
172 private _schema?: SeriesDataSchema;
173 /**
174 * @pending
175 * Actually we do not really need to convert dimensionIndex to dimensionName
176 * and do not need `_dimIdxToName` if we do everything internally based on dimension
177 * index rather than dimension name.
178 */
179 private _dimIdxToName?: zrUtil.HashMap<DimensionName, DimensionIndex>;
180
181 readonly hostModel: HostModel;
182
183 /**
184 * @readonly
185 */
186 dataType: SeriesDataType;
187
188 /**
189 * @readonly
190 * Host graph if List is used to store graph nodes / edges.
191 */
192 graph?: Graph;
193
194 /**
195 * @readonly
196 * Host tree if List is used to store tree nodes.
197 */
198 tree?: Tree;
199
200 private _store: DataStore;
201
202 private _nameList: string[] = [];
203 private _idList: string[] = [];
204
205 // Models of data option is stored sparse for optimizing memory cost
206 // Never used yet (not used yet).
207 // private _optionModels: Model[] = [];
208
209 // Global visual properties after visual coding

Callers

nothing calls this directly

Calls 6

convertOptionIdNameFunction · 0.90
_getCategoryMethod · 0.80
countMethod · 0.65
eachMethod · 0.45
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…