A key (legend) isn't mandatory for every chart—but it's highly recommended for clarity in most cases. The decision comes down to one question: Can the reader instantly understand what the visual marks represent without it?
Lines, bars, or points representing different variables—e.g., Sales vs. Expenses, or multiple countries' GDP over time. Without a legend, the chart is ambiguous.
Color, shape, pattern, or size mapping to categories—species, regions, conditions, demographic groups. If the visual encoding carries meaning, the legend decodes it.
If there's even a moment's hesitation about what a mark represents, add a legend. Clarity trumps minimalism.
One variable with clearly labeled axes and a descriptive title—e.g., "Monthly Revenue 2023." The chart explains itself.
Lines or points labeled directly on the chart (preferred over legends). This reduces eye movement and cognitive load.
Embedded in a report where adjacent text fully explains the data. The legend becomes redundant.
Default to including a key; remove only if it adds zero information.