MCPcopy
hub / github.com/chartjs/Chart.js / initialize

Method initialize

src/core/core.datasetController.js:280–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 }
279
280 initialize() {
281 const meta = this._cachedMeta;
282 this.configure();
283 this.linkScales();
284 meta._stacked = isStacked(meta.vScale, meta);
285 this.addElements();
286
287 if (this.options.fill && !this.chart.isPluginEnabled('filler')) {
288 console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
289 }
290 }
291
292 updateIndex(datasetIndex) {
293 if (this.index !== datasetIndex) {

Callers 1

constructorMethod · 0.95

Calls 5

configureMethod · 0.95
linkScalesMethod · 0.95
addElementsMethod · 0.95
isStackedFunction · 0.85
isPluginEnabledMethod · 0.80

Tested by

no test coverage detected