For more information, see https://www.chartjs.org/docs/latest/configuration/legend.html
Create a blank legend object that can then be updated with the below functions
Is the legend shown?
Position of the legend (relative to the chart)
Marks that this box should take the full width of the canvas (pushing down other boxes). This is unlikely to need to be changed in day-to-day use.
Legend will show datasets in reverse order
Set properties for the labels of this legend
Properties for the labels that make up the legend
Create a blank labels object that can then be updated with the below functions
Width of the coloured box
Font size of the label text
Font style of the label text (normal, bold, etc.)
Color of the label text
Font family to use for label text
Padding between rows of coloured boxes
Label style will match corresponding point style
The chart legend displays data about the datasets that are appearing on the chart