Dos and Don’ts of Data Visualisation
Make charts easy to read
Don't use a legend when you have only one data category
If there is only one value category plotted in your chart, then there is no need to have a legend. The necessary information can be included in the title instead. Alternatively, you can label the axis directly.