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

Method _initialize

src/core/core.controller.js:236–252  ·  view source on GitHub ↗

* @private

()

Source from the content-addressed store, hash-verified

234 * @private
235 */
236 _initialize() {
237 // Before init plugin notification
238 this.notifyPlugins('beforeInit');
239
240 if (this.options.responsive) {
241 this.resize();
242 } else {
243 retinaScale(this, this.options.devicePixelRatio);
244 }
245
246 this.bindEvents();
247
248 // After init plugin notification
249 this.notifyPlugins('afterInit');
250
251 return this;
252 }
253
254 clear() {
255 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