When should you use a colorbar instead of a discrete legend, and what does that tell you about the underlying variable?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks when a chart should show a colorbar and when it should show a discrete legend for a color-encoded variable. It tests whether you can tell continuous, ordinal and categorical data apart and pick an encoding that does not mislead readers about order.