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