How do you pick a chart encoding from the message: comparison, composition, distribution, relationship, or trend?

Quick Overview

Asks how to choose the visual encoding for an explanatory chart based on the message it must deliver: comparison, composition, distribution, relationship, or trend over time. Tests chart selection, how accurately people read different visual channels, and how to point an audience at one takeaway with Matplotlib or Seaborn.

How do you pick a chart encoding from the message: comparison, composition, distribution, relationship, or trend?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

You are building an explanatory chart for an audience, such as a slide for a product review or a figure in a report, where the chart exists to make one point. How do you pick the visual encoding from the message you need to land: comparison, composition, distribution, relationship, or trend over time? ```hint Start from the sentence Write down the one sentence you want the audience to remember. Which of the five message types does that sentence belong to? ``` ```hint What people read accurately People judge some visual channels more accurately than others. Compare position along a shared axis with angle, area and color, and ask which channel carries the key quantity in each chart family. ``` ### What a Strong Answer Covers - Starting from the takeaway and classifying it into one of the five message types before any chart is chosen. - A suitable chart family for each message type, with a reason tied to how easily the key quantity can be read. - How to draw attention to the one element that matters and mute the rest, including what goes in the title. - Where common defaults such as pies, stacked areas or truncated axes break down. - Concrete Matplotlib or Seaborn calls for at least some of the cases. ### Follow-up Questions - A stakeholder wants market share for 12 products as a pie chart. What do you propose, and how do you justify it? - How would you show composition and trend over time together when one component's share changes a lot? - How do you compare distributions across 30 groups without producing an unreadable chart? - When is a dual-axis chart acceptable, and what would you use in its place?

Overview: Asks how to choose the visual encoding for an explanatory chart based on the message it must deliver: comparison, composition, distribution, relationship, or trend over time. Tests chart selection, how accurately people read different visual channels, and how to point an audience at one takeaway with Matplotlib or Seaborn.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

You are building an explanatory chart for an audience, such as a slide for a product review or a figure in a report, where the chart exists to make one point. How do you pick the visual encoding from the message you need to land: comparison, composition, distribution, relationship, or trend over time?

What a Strong Answer Covers Guidance

  • Starting from the takeaway and classifying it into one of the five message types before any chart is chosen.
  • A suitable chart family for each message type, with a reason tied to how easily the key quantity can be read.
  • How to draw attention to the one element that matters and mute the rest, including what goes in the title.
  • Where common defaults such as pies, stacked areas or truncated axes break down.
  • Concrete Matplotlib or Seaborn calls for at least some of the cases.

Follow-up Questions Guidance

  • A stakeholder wants market share for 12 products as a pie chart. What do you propose, and how do you justify it?
  • How would you show composition and trend over time together when one component's share changes a lot?
  • How do you compare distributions across 30 groups without producing an unreadable chart?
  • When is a dual-axis chart acceptable, and what would you use in its place?