MCPcopy
hub / github.com/automeris-io/WebPlotDigitizer / addDataset

Method addDataset

app/javascript/core/plotData.js:88–97  ·  view source on GitHub ↗
(ds)

Source from the content-addressed store, hash-verified

86 }
87
88 addDataset(ds) {
89 this._datasetColl.push(ds);
90
91 // by default bind ds to last axes
92 const axCount = this._axesColl.length;
93 if (axCount > 0) {
94 let axes = this._axesColl[axCount - 1];
95 this.setAxesForDataset(ds, axes);
96 }
97 }
98
99 getDatasets() {
100 return this._datasetColl;

Callers 6

mainFunction · 0.80
postProcessAxesAddFunction · 0.80
addSingleDatasetFunction · 0.80
addMultipleDatasetsFunction · 0.80

Calls 1

setAxesForDatasetMethod · 0.80

Tested by

no test coverage detected