* Resize the chart to its container or to explicit dimensions. * @param {number} [width] * @param {number} [height]
(width, height)
| 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; |
no test coverage detected