visualization_lecture

Types of plots

Visualization Cheatsheet — Chart Types

A concise reference for undergraduate students summarizing common chart types, when to use them, what they show, and quick best-practice tips.


Overview

Visualizations help turn data into insight. Choosing the right chart depends on: the question you want to answer (task), the types of variables you have (quantitative vs categorical vs temporal vs geographic), and your audience. Common roles for visualizations include:


Quick reference table

Chart type Primary use Data type / encoding When to prefer it
Line chart Change over time Time (x) → numeric (y) Continuous trends, multiple series
Bar chart Compare categories Categorical → numeric Ranked comparisons, discrete categories
Grouped / stacked bar Compare subgroups or parts of whole Categorical × categorical Compare groups or show composition across categories
Histogram Distribution of one numeric variable Numeric → bins Explore shape, skew, outliers
Density plot Smoothed distribution Numeric When you want a smooth estimate
Box plot Summarize distribution Numeric by group Compare medians, spread, outliers
Violin plot Distribution + density by group Numeric by group Show distribution shape per group
Scatter plot Relationship between two variables Numeric × numeric Correlation, clusters, outliers
Bubble chart Scatter with third variable Numeric × numeric + size/color Add magnitude to scatter points
Heatmap Matrix or 2-D density Two categorical / binned numeric axes Show intensity across a grid
Choropleth / Cartogram Geographic patterns Region → numeric Map-based comparisons
Area chart Part-to-whole over time Time with stacking Emphasize totals and composition (use carefully)
Pie / Donut Simple part-to-whole Categorical proportions Only for few categories and when exact comparison not required
Treemap / Marimekko Hierarchical or composition Hierarchy → area Many subparts, space-limited views
Candlestick / OHLC Financial time series Time → open/high/low/close Price movements in trading data
Funnel chart Process conversion Ordered stages Conversion/drop-off visualization (marketing, UX)
Parallel coordinates Multivariate comparison Many numeric attributes Observe patterns across many variables
Dumbbell / Slope chart Two-point comparisons Category → two numeric points Show change between two timepoints or conditions
Bullet chart Compare to benchmark Numeric with target Compact KPI vs target display

Short descriptions & classroom tips

Line chart

Bar chart (including grouped & stacked)

Histogram & Density plot

Box plot & Violin plot

Scatter & Bubble charts

Heatmap

Choropleth & Cartogram

Area & Stacked area

Pie & Donut charts

Treemap & Marimekko

Specialized charts (Candlestick, Funnel, Bullet, Parallel coordinates)


Best-practice checklist (short)


Suggested classroom exercises

  1. Pick the right chart: Give the same dataset and three analysis questions; students pick and justify a chart for each question.
  2. Tufte reflection: Ask students to rework a messy dashboard to follow Tufte’s principles (minimize ink, maximize data-ink ratio).
  3. Perception lab: Compare bar vs pie vs donut for the same proportions and test which students estimate most accurately.
  4. Small multiples: Students create small-multiple line charts to compare dozens of time series.

Further reading / resources