November 2019
Beginner
804 pages
20h 1m
English
Last but not least, we can now implement the method that will render the chart. The displayChart function accepts a ChartDetails object, containing everything we need to know in order to render.
Before we implement this method, we first need to import Chart.js and retrieve the canvas element from the DOM:
Now, add the following code to the constructor:
this._canvas = ...
Read now
Unlock full access