Legends are used to explain different sets of data plotted in different colors or marks in the chart.