How do you choose a plot type for a given data type and the question you're exploring?

Quick Overview

Asks how to pick a chart during exploratory data analysis based on the variable types involved and the question being answered. Tests whether you can match distributions, comparisons, relationships, trends and compositions to suitable plots and adjust for large, skewed or high-cardinality data.

How do you choose a plot type for a given data type and the question you're exploring?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How do you choose the appropriate plot type for a given data type and the specific question you're trying to answer during exploration? ```hint Two inputs Classify each variable you want to plot (numerical, categorical, time) and count how many go on one chart. Then name the pattern you need to see, since the same pair of variables can call for different plots. ``` ```hint Think about scale A plot that reads well with 200 points may be unreadable with 2 million. Ask what changes when the data is large, skewed or has many categories. ``` ### What a Strong Answer Covers - A mapping from the number and type of variables to plot families - A mapping from the question (distribution, comparison, relationship, trend, composition) to plots - Adjustments for large data, overplotting, skewed values and a third variable - Keeping the encoding honest: axis baselines, scales and bin widths - A concrete exploration question worked through to a set of plots ### Follow-up Questions - Your scatter plot of 5 million rows is a solid blob. What do you try next? - When is a pie chart acceptable, and what would you use instead most of the time? - How do you show a categorical variable with 300 levels? - How would your choices change between plots for your own exploration and plots for a stakeholder deck?

Overview: Asks how to pick a chart during exploratory data analysis based on the variable types involved and the question being answered. Tests whether you can match distributions, comparisons, relationships, trends and compositions to suitable plots and adjust for large, skewed or high-cardinality data.

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

How do you choose the appropriate plot type for a given data type and the specific question you're trying to answer during exploration?

What a Strong Answer Covers Guidance

  • A mapping from the number and type of variables to plot families
  • A mapping from the question (distribution, comparison, relationship, trend, composition) to plots
  • Adjustments for large data, overplotting, skewed values and a third variable
  • Keeping the encoding honest: axis baselines, scales and bin widths
  • A concrete exploration question worked through to a set of plots

Follow-up Questions Guidance

  • Your scatter plot of 5 million rows is a solid blob. What do you try next?
  • When is a pie chart acceptable, and what would you use instead most of the time?
  • How do you show a categorical variable with 300 levels?
  • How would your choices change between plots for your own exploration and plots for a stakeholder deck?