]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Make "dedicated to the chart canvas" a requirement (#4253)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 13 May 2017 12:14:47 +0000 (14:14 +0200)
committerGitHub <noreply@github.com>
Sat, 13 May 2017 12:14:47 +0000 (14:14 +0200)
docs/general/responsive.md

index 3d7bb027e19b0e3b0e18d70fe717cf2effc3744f..bf8e8fa7a5fc2cb9bc55423716771e0f0d952fc7 100644 (file)
@@ -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
 <div class="chart-container" style="position: relative; height:40vh; width:80vw">