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

Method resize

src/core/core.controller.js:269–275  ·  view source on GitHub ↗

* Resize the chart to its container or to explicit dimensions. * @param {number} [width] * @param {number} [height]

(width, height)

Source from the content-addressed store, hash-verified

267 * @param {number} [height]
268 */
269 resize(width, height) {
270 if (!animator.running(this)) {
271 this._resize(width, height);
272 } else {
273 this._resizeBeforeDraw = {width, height};
274 }
275 }
276
277 _resize(width, height) {
278 const options = this.options;

Callers 3

_initializeMethod · 0.95
listenerMethod · 0.95
attachedMethod · 0.95

Calls 2

_resizeMethod · 0.95
runningMethod · 0.80

Tested by

no test coverage detected