Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Typo in documentation

Open borgar opened this issue 13 years ago • 2 comments

The documentation gives this example code:

//Get the context of the canvas element we want to select
var ctx = document.getElementbyID("myChart").getContext("2d");
var myNewChart = new Chart(ctx).PolarArea(data);

Here getElementbyID should of course be getElementById.

borgar avatar Mar 18 '13 10:03 borgar

Oops! Well noticed - sorted now.

nnnick avatar Mar 18 '13 18:03 nnnick

Same type in documentation. var ctx = document.getElementbyId... var ctx = document.getElementById... Thanks for your work!

liuxiachanghong avatar Mar 19 '13 07:03 liuxiachanghong