Docs: chart should live in own container (#7658)

This commit is contained in:
Ben McCann 2020-07-21 14:50:18 -07:00 committed by GitHub
parent bdef29ebb1
commit 8837cbc890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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.