This commit is contained in:
Jáchym Toušek
2015-11-03 13:49:34 +01:00
parent 57d8155bb0
commit 68255893cf

View File

@@ -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!