MCPcopy Create free account
hub / github.com/chartjs/Chart.js / initialize

Method initialize

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

Source from the content-addressed store, hash-verified

290 }
291
292 initialize() {
293 const meta = this._cachedMeta;
294 this.configure();
295 this.linkScales();
296 meta._stacked = isStacked(meta.vScale, meta);
297 this.addElements();
298
299 if (this.options.fill && !this.chart.isPluginEnabled('filler')) {
300 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");
301 }
302 }
303
304 updateIndex(datasetIndex) {
305 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