Module To Use : https://www.chartjs.org/docs/latest/
Here is what the above code is Doing:
1. We are creating a new chart object.
2. We are adding data to this chart object.
3. We are adding options to this chart object.
4. We are creating a new canvas HTML element.
5. We are getting the 2D context of the canvas.
6. We are drawing the chart on the canvas.