From: Simon Brunel Date: Sat, 13 May 2017 12:14:47 +0000 (+0200) Subject: Make "dedicated to the chart canvas" a requirement (#4253) X-Git-Tag: v2.6.0~2^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e45ac3c94587457448bd2f466f23bd8e639f9f47;p=thirdparty%2FChart.js.git Make "dedicated to the chart canvas" a requirement (#4253) --- diff --git a/docs/general/responsive.md b/docs/general/responsive.md index 3d7bb027e..bf8e8fa7a 100644 --- a/docs/general/responsive.md +++ b/docs/general/responsive.md @@ -20,7 +20,7 @@ Chart.js provides a [few options](#configuration-options) to enable responsivene ## Important Note -Detecting when the canvas size changes can not be done directly from the `CANVAS` element. Chart.js uses its parent container to update the canvas *render* and *display* sizes. However, this method requires the container to be **relatively positioned**. It's also strongly recommended to **dedicate this container to the chart canvas only**. Responsiveness can then be achieved by setting relative values for the container size ([example](https://codepen.io/chartjs/pen/YVWZbz)): +Detecting when the canvas size changes can not be done directly from the `CANVAS` element. Chart.js uses its parent container to update the canvas *render* and *display* sizes. However, this method requires the container to be **relatively positioned** and **dedicated to the chart canvas only**. Responsiveness can then be achieved by setting relative values for the container size ([example](https://codepen.io/chartjs/pen/YVWZbz)): ```html