]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Docs: chart should live in own container (#7658)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Tue, 21 Jul 2020 21:50:18 +0000 (14:50 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 21:50:18 +0000 (17:50 -0400)
docs/docs/getting-started/index.md

index 3de548ed731f9643b73761b9c600515fcf3bd9ca..622a52257c9e4e4549d95c45b54bbeca366d3a24 100644 (file)
@@ -4,10 +4,12 @@ title: Getting Started
 
 Let's get started using Chart.js!
 
-First, we need to have a canvas in our page.
+First, we need to have a canvas in our page. It's recommended to give the chart its own container for [responsiveness](../general/responsive.md).
 
 ```html
-<canvas id="myChart"></canvas>
+<div>
+  <canvas id="myChart"></canvas>
+</div>
 ```
 
 Now that we have a canvas we can use, we need to include Chart.js in our page.