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

Method _initialize

src/core/core.controller.js:241–257  ·  view source on GitHub ↗

* @private

()

Source from the content-addressed store, hash-verified

239 * @private
240 */
241 _initialize() {
242 // Before init plugin notification
243 this.notifyPlugins('beforeInit');
244
245 if (this.options.responsive) {
246 this.resize();
247 } else {
248 retinaScale(this, this.options.devicePixelRatio);
249 }
250
251 this.bindEvents();
252
253 // After init plugin notification
254 this.notifyPlugins('afterInit');
255
256 return this;
257 }
258
259 clear() {
260 clearCanvas(this.canvas, this.ctx);

Callers 1

constructorMethod · 0.95

Calls 4

notifyPluginsMethod · 0.95
resizeMethod · 0.95
bindEventsMethod · 0.95
retinaScaleFunction · 0.85

Tested by

no test coverage detected