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

Method resize

src/core/core.controller.js:274–280  ·  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

272 * @param {number} [height]
273 */
274 resize(width, height) {
275 if (!animator.running(this)) {
276 this._resize(width, height);
277 } else {
278 this._resizeBeforeDraw = {width, height};
279 }
280 }
281
282 _resize(width, height) {
283 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