mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-23 00:26:52 +01:00
typo
This commit is contained in:
@@ -48,7 +48,7 @@ To create a chart, we need to instantiate the `Chart` class. To do this, we need
|
||||
// Any of the following formats may be used
|
||||
var ctx = document.getElementById("myChart");
|
||||
var ctx = document.getElementById("myChart").getContext("2d");
|
||||
var ctx = $("myChart");
|
||||
var ctx = $("#myChart");
|
||||
```
|
||||
|
||||
Once you have the element or context, you're ready to instantiate a pre-defined chart-type or create your own!
|
||||
|
||||
Reference in New Issue
Block a user