In a chart or graph in a spreadsheet program such as Microsoft Excel, the legend is often located on the right-hand side of the chart or graph and is sometimes surrounded by a border. The legend is linked to the data being graphically displayed in the plot area of the chart.