A legend is a key that explains the symbols, colors, or patterns used in a data visualization. It provides context so that the viewer can accurately interpret the information presented. Labels, on the other hand, are descriptive tags that identify different parts of the graph, such as the axes, data points, or categories.