mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-05 16:04:03 +01:00
Docs: chart should live in own container (#7658)
This commit is contained in:
committed by
Evert Timberg
parent
2c5bfc282f
commit
1b76db997d
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user