$ chart --for question

Data Visualization

Data visualization turns numbers into pictures so people can see patterns, compare values and spot problems faster than they could by reading a table. For data engineers it matters in two ways: the tables you build feed dashboards, so their shape decides what is easy to chart, and you will build plenty of charts yourself for monitoring pipelines and explaining data. A good chart answers one question clearly; the chart type follows from that question, not from what looks impressive.

Start from the question

$ chart --for question
Pick the chart from the question you are answering
COMPARE Revenueby city? BAR, SORTED TREND Ordersper day? LINE PART OF WHOLE Share ofsales by channel? web 52 · app 28store 20 (%) STACKED BAR DISTRIBUTION How are ordervalues spread? HISTOGRAM RELATIONSHIP Discount vsbasket size? SCATTER
  1. Compare categories: a bar chart, sorted, starting at zero. Length is the easiest thing for eyes to compare.
  2. Trend over time: a line chart, time on the x-axis. Lines show direction and change; the axis need not start at zero.
  3. Part of a whole: a stacked bar (or a pie with at most 3 to 5 slices). Beyond that, use sorted bars.
  4. Distribution: a histogram (or box plot) shows where most values sit and whether there are long tails. An average alone hides this.
  5. Relationship between two measures: a scatter plot, one dot per item. Add a trend line, but remember correlation is not causation.

Other useful types: tables when people need exact values, heatmaps for two categorical dimensions (hour by weekday), maps only when geography is the point, and a single big number with a comparison (“1,285 orders, +8% vs last week”) for KPIs.

Rules that make charts honest and readable

  • One message per chart. Put it in the title: “Toronto orders doubled since March”, not “Orders by city”.
  • Bars start at zero. A truncated axis makes small differences look huge.
  • Sort categories by value unless they have a natural order (months, sizes).
  • Use color with intent. Grey for context, one highlight color for what matters. Keep palettes colorblind-safe and don’t rely on color alone.
  • No 3D, no dual y-axes unless you have a very good reason. Both distort comparisons.
  • Label directly on lines and bars instead of forcing readers to a legend.
  • Show uncertainty and context: targets, last year, confidence ranges.

Dashboards

  • Put the most important number top-left; that is where most readers look first.
  • Design for a specific audience and decision: an executive weekly review, an ops team watching a pipeline, an analyst exploring.
  • Keep it to a handful of charts; link to detail views instead of cramming.
  • Show data freshness (“updated 09:12”) so users know whether to trust it.
  • Back every metric with a single definition, ideally in a semantic layer (dbt Semantic Layer, Cube, LookML, Power BI semantic models) so the same “revenue” appears everywhere.

What data engineers should provide

  • Modeled tables at a clear grain, usually star schemas, so BI tools can filter and aggregate without custom SQL.
  • Pre-aggregated tables for heavy dashboards, refreshed on a schedule.
  • Consistent naming and descriptions that show up in the BI tool.
  • Freshness and quality checks so a dashboard never silently shows yesterday’s partial data.

Tools

Tool Type Strengths Good fit
Power BI Commercial (Microsoft, part of Fabric) Strong modeling (DAX), Excel / Microsoft 365 integration, Copilot Microsoft-centric organizations
Tableau Commercial (Salesforce) Very flexible visual exploration Analysts building rich interactive views
Looker Commercial (Google Cloud) LookML semantic layer, governed metrics Teams that want metrics defined as code
Apache Superset Open source (Preset hosts it) SQL Lab, many chart types, scales to large orgs Self-hosted BI on a warehouse or lakehouse
Metabase Open source + cloud Very easy setup, question builder, embedding Small teams, quick self-service, embedded analytics
Grafana Open source + cloud Time series, alerting Operational and pipeline monitoring
Code-based (Evidence, Streamlit, Observable) Open source Version control, custom apps Data apps and reports maintained by engineers

The tool matters less than the model under it. Any of them will produce wrong numbers from a fact table with an undefined grain.

Common mistakes

  • Pie charts with ten slices, or 3D charts of any kind.
  • A dashboard per request, until nobody knows which “revenue” is right.
  • Averages without distributions: the average order is $40, but most orders are about $10 and a few are $2,000.
  • Querying raw event tables live from the dashboard, making every page load a full scan.
  • Charts with no units, no time range and no freshness indicator.

Learning Resources

Books

References

Tool docs