mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Docs: chart should live in own container (#7658)
This commit is contained in:
parent
bdef29ebb1
commit
8837cbc890
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user