I have made a map that shows fire risk for the different Districts within South Africa, and each fire risk is styled by value to match a certain color. I am trying to add a legend to show what each colour relates to a field (extreme, high, medium or low-risk level) but I am not having any luck. There is this legend example on the CARTO docs, but it is a little tricky to adapt to my code.
I have added the code and a CodePen, and here are the layer properties:
overall is the column I would like to represent in the legend.