Data visualization

Also known as: dataviz

On this page 7

Data visualization is the practice of encoding data values as visual properties, such as position, length, angle, area and color, so that people can perceive patterns, comparisons, trends and outliers faster and more reliably than from tables of numbers. Often shortened to dataviz, it covers static charts, interactive dashboards, maps and specialized diagrams.

Within data work, visualization serves two different purposes: exploration, where an analyst looks for structure in unfamiliar data, and explanation, where a finished chart communicates a specific finding to an audience. The same dataset usually needs different charts for each purpose.

How data visualization encodes information

Every chart maps data variables to visual channels. A bar chart maps a category to position on one axis and a quantity to bar length; a scatter plot maps two quantities to horizontal and vertical position; a heatmap maps a quantity to color intensity. The designer chooses marks (points, lines, bars, areas) and channels (position, size, hue, lightness) for each variable.

Perception research shows that channels are not equally accurate. People judge position along a common scale most precisely, then length, then angle and area, while color saturation and volume are judged poorly. This ranking explains why bar charts usually outperform pie charts for precise comparison, and why 3D effects degrade readability.

The table below ranks the most common visual channels for quantitative data.

Visual channelRelative accuracyTypical use
Position on a common scaleHighestBar, dot, line and scatter charts
Position on unaligned scalesHighSmall multiples with separate axes
LengthHighBars, bullet charts
Angle and slopeMediumPie charts, slope graphs
AreaLow to mediumBubble charts, treemaps
Color lightness or saturationLowHeatmaps, choropleth maps
VolumeLowest3D shapes, rarely justified
Accuracy of visual channels for quantities

Choosing a chart type for the question

Chart choice starts from the analytical question, not from the available chart gallery. Comparison, change over time, distribution, relationship, composition and flow each have a small set of chart types that answer them well.

QuestionSuitable chartsAvoid
Comparison across categoriesBar chart, dot plotPie chart with many slices
Change over timeLine chart, area chart, sparklineUnordered bars for long series
Distribution of valuesHistogram, box plot, density plotAverages alone
Relationship between variablesScatter plot, bubble chartDual-axis charts with arbitrary scales
Part-to-whole compositionStacked bar, treemap, pie with two to five partsStacked areas with many layers
Flow between stagesSankey diagram, funnel chartNetwork diagrams for simple flows
Geographic variationChoropleth map, symbol mapRaw counts on choropleths
Matching questions to chart types

A frequent mistake is the choropleth of raw counts: populous regions dominate simply because they are large. Maps shaded by color should show normalized values such as rates per 100,000 people, while absolute counts suit proportional symbols.

Design principles that make charts readable

Effective visualization removes everything that does not carry information and emphasizes what does. The principle often described as maximizing the data-ink ratio means dropping heavy gridlines, borders, shadows and decorative backgrounds, and labeling data directly instead of relying on distant legends.

ParameterRecommended practiceWhy it matters
Bar chart baselineStart the value axis at zeroBar length must be proportional to value
Line chart axisMay start above zero if labeledHighlights change within a narrow range
Categorical colorsRoughly six to eight distinct hues at mostMore hues cannot be told apart reliably
Sequential colorsSingle hue varying in lightnessPreserves order from low to high
Diverging colorsTwo hues around a meaningful midpointShows deviation from a target or zero
Text contrastAt least 4.5:1 for normal textMeets common accessibility guidelines
SortingOrder bars by value unless order is inherentMakes ranking visible at a glance
Key design parameters and recommended practice

Color accessibility deserves particular attention, because a meaningful share of people have some form of color vision deficiency, most often affecting red and green. Palettes should differ in lightness as well as hue, and critical distinctions should also be carried by labels, shapes or position.

Exploratory, explanatory and interactive visualization

The purpose of a chart determines how polished and how focused it must be. Exploratory charts are fast and numerous; explanatory charts are few, carefully annotated and built around one message; interactive dashboards let users filter and drill down within a fixed design.

ModeAudienceCharacteristics
ExploratoryThe analystMany quick charts, default styling, focus on discovery
ExplanatoryDecision makers or the publicOne message per chart, annotations, deliberate emphasis
Interactive dashboardRecurring business usersFilters, drill-down, consistent layout, frequent refresh
Data storytellingBroad audiencesSequenced charts with narrative and context
Modes of data visualization

Interactivity is valuable when users genuinely ask different questions of the same data, but it shifts the burden of interpretation to the reader. For a single important finding, a well-annotated static chart is usually more effective than a dashboard full of controls.

Common pitfalls and misleading charts

Most misleading charts are not deliberate; they result from default settings and unexamined choices. Reviewers should check each chart against a short list of known failure modes before publication.

  • Truncated bar axes that exaggerate small differences between categories.
  • Dual y-axes whose independent scales can suggest any correlation the designer wants.
  • Overplotting in scatter plots with many points, solved with transparency, binning or sampling.
  • Rainbow color scales that create false boundaries and are hard to read in grayscale.
  • Missing uncertainty, showing point estimates without intervals when samples are small.
  • Too many series on one line chart, better split into small multiples.

Understanding it simply

Data visualization means turning numbers into pictures so the eye can do part of the thinking. A column of 50 monthly sales figures is hard to read. Drawn as a line, the same figures instantly show whether sales are rising or falling.

A good chart works like a well-drawn map. It leaves out unnecessary detail and makes the important route obvious. The best chart answers the reader’s question at a glance. It never uses tricks that make differences look bigger or smaller than they are.

Applied in practice

A hospital operations team tracks emergency department waiting times. Its old monthly report was a table of averages per weekday, and the averages looked acceptable. An analyst replaced it with a heatmap of median and 90th percentile waits by weekday and hour, using a sequential single-hue palette.

The heatmap immediately showed a dark band on Monday and Tuesday evenings between 18:00 and 22:00, where the 90th percentile wait was roughly twice the daily figure. The averages had hidden it because quiet night hours pulled them down. Management moved two clinician shifts to those evening hours, and the next quarter’s heatmap showed the band largely gone.