Data Visualisation (Chart Types)

Context: FIT1043_MOC Β· picking a chart by data type Β· a preliminary form of analysis Β· rendered in matplotlib

Quick Revision

  • 🎯 Objective: choose the chart that matches the data type βž” numeric β†’ histogram/boxplot; categorical β†’ bar/pie/frequency table.
  • πŸ“¦ Core Components: histogram (continuous) vs bar chart (categorical) | pie (≀6 categories) | motion chart (5-D).
  • ⚑ Key Constraint: visualisation is preliminary β€” it gives a β€œfeel” and reveals patterns, but a flat screen limits you to ~2 dimensions.

πŸ“ How It Works

1. Purpose

  • Preliminary analysis βž” get a β€œfeel” for the data; can quickly reveal patterns.
  • Dimension limit βž” paper/screen is 2-D; tricks push to 5–7 dims (colour/size/time), but readability drops.

2. Charts by Data Type

  • Numeric (discrete + continuous) βž” histograms, box plots, motion charts.
  • Categorical βž” frequency tables (a summary, not a graph), bar graphs, pie charts.
  • Bar chart βž” compares groups or shows change over time.
  • Pie chart βž” proportions of a whole; usable for ≀6 categories (more becomes unreadable).

3. Histograms (bin continuous data)

  • Definition βž” a bar chart of bin counts for continuous data (bar charts alone are for categorical).
  • Bins βž” equally spaced bins of width ; bin count .
  • Choosing βž” too few hides shape, too many looks ragged (e.g. 20 β†’ 50 smoother β†’ 100 ragged).

4. Motion Charts

  • What βž” interactive multi-dimensional viz (GapMinder, Hans Rosling; Google renamed them bubble charts).
  • Five dimensions βž” x-axis, y-axis, bubble size, bubble colour, and time.
  • Trade-off βž” + deep trends, good for exploration, intuitive; βˆ’ not for static media, controls complex/overwhelming.

βš–οΈ Core Decision Matrix

Data typeChartsNote
Numeric-continuoushistogram, box plothistogram needs binning
Numeric (either)motion/bubble chartmulti-dimensional/time
Categoricalbar graph, frequency tablebar compares groups
Categorical (proportions)pie chart≀6 categories only

When It Flips: a histogram and a bar chart look alike but differ by data type β€” histograms bin continuous numeric data (bars touch, order matters), bar charts show categorical counts (bars separate, order free).

πŸ“Š Exam Execution Trace

Applied Exercise

Problem: Data spans , , using bins. Bin width? Which bin holds ? Derivation Proof / Hand-Calculation Walkthrough:

Final Extracted Output: width ; falls in bin 10 (the 45–50 interval).

🧠 Active Recall