MCPcopy
hub / github.com/palantir/plottable / datasets

Method datasets

src/plots/plot.ts:684–695  ·  view source on GitHub ↗
(datasets?: Dataset[])

Source from the content-addressed store, hash-verified

682 public datasets(): Dataset[];
683 public datasets(datasets: Dataset[]): this;
684 public datasets(datasets?: Dataset[]): any {
685 const currentDatasets: Dataset[] = [];
686 this._datasetToDrawer.forEach((drawer, dataset) => currentDatasets.push(dataset));
687 if (datasets == null) {
688 return currentDatasets;
689 }
690
691 currentDatasets.forEach((dataset) => this._removeDataset(dataset));
692 datasets.forEach((dataset) => this._addDataset(dataset));
693 this._onDatasetUpdate();
694 return this;
695 }
696
697 protected _generateDrawSteps(): Drawers.DrawStep[] {
698 return [{ attrToProjector: this._getAttrToProjector(), animator: new Animators.Null() }];

Callers 15

_setupMethod · 0.95
destroyMethod · 0.95
getExtentsForAttrMethod · 0.95
getExtentsForPropertyMethod · 0.95
_removeDatasetMethod · 0.95
_getDataToDrawMethod · 0.95
_paintMethod · 0.95
selectionsMethod · 0.95
_getEntityStoreMethod · 0.95
calculateStackedYsFunction · 0.45

Calls 4

_removeDatasetMethod · 0.95
_addDatasetMethod · 0.95
_onDatasetUpdateMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected