<canvas> lets the developer draw 2D graphics using JavaScript
The closing </canvas> tag is important because any content between the opening and closing tag is fallback content if the users browser doesn’t support the <canvas> tag.
getContext() “Returns a render context object”. source
Chart.js is a library that provides a set of charts, plugins, and graphs for data visualization. It is compatible with all popular JS frameworks. It is highly customizable with custom plugins. You need to input the script like how you do with app.js source
3 different charts you can create using Chart.js are Area Charts, radar chart and scatter charts.
Some advantages to displaying data via a chart over a table are that they’re easier to look at and convey data more quickly than tables. source
Charts will make the information more appealing to read. This makes sense to me because the tables in HTML(at least in salmon cookies) were not appealing at all. They also help with identifying trends, comparison and data simplificaiton. -ChatGPT
getContext() do exactly that seemed like a vague section in the reading.CDN- Content Delivery Network