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

Method getSharedDataStore

src/data/helper/sourceManager.ts:376–384  ·  view source on GitHub ↗

* * Get a data store which can be shared across series. * Only available for series. * * @param seriesDimRequest Dimensions that are generated in series. * Should have been sorted by `storeDimIndex` asc.

(seriesDimRequest: SeriesDataSchema)

Source from the content-addressed store, hash-verified

374 * Should have been sorted by `storeDimIndex` asc.
375 */
376 getSharedDataStore(seriesDimRequest: SeriesDataSchema): DataStore {
377 if (__DEV__) {
378 assert(isSeries(this._sourceHost), 'Can only call getDataStore on series source manager.');
379 }
380 const schema = seriesDimRequest.makeStoreSchema();
381 return this._innerGetDataStore(
382 schema.dimensions, seriesDimRequest.source, schema.hash
383 );
384 }
385
386 private _innerGetDataStore(
387 storeDims: DataStoreDimensionDefine[],

Callers 1

createSeriesDataFunction · 0.80

Calls 4

_innerGetDataStoreMethod · 0.95
isSeriesFunction · 0.85
makeStoreSchemaMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected