Florence Nightingale did not save lives by treating patients. she saved them by drawing a chart.
Nightingale showed her "coxcomb diagram," which was a polar area chart she developed and popularized for this purpose, to Queen Victoria and Parliament in 1858.[10] The visualization made it clear with devastating clarity that soldiers in the Crimean War were dying mainly from preventable infectious diseases and not from battle wounds.
Disease deaths were represented by blue wedges that far outpaced those for combat deaths as red wedges. The gap was so large that it was impossible to dismiss the conclusion visually.
Military statisticians had gathered the mortality figures and physicians had documented the conditions in the hospitals before Nightingale's chart appeared. No action was taken until the information appeared in a form that made the pattern instantly and emotionally clear to everyone.
Sanitary reforms during the war had brought down the death rate in military hospitals from about 42% to about 2% and her later analysis drew on those results. One of the greatest public health advances of the 19th century came from a visualization.
Data visualization is not decoration. It is the link between analysis and action. A well-designed visualization makes patterns clear, comparisons intuitive and insights memorable when tables of numbers cannot show what they should.
A poorly designed visualization obscures, misleads, or overwhelms-sometimes causing more harm than the absence of visualization would have caused.
'Above all else, show the data. Every non-data element in a visualization (every background color, every ornamental grid line, every decorative border) is visual noise that the viewer must process and ignore before reaching the information. Remove everything that does not help the viewer understand the data.'
Edward Tufte, author of 'The Visual Display of Quantitative Information' (1983)
What Makes a Visualization Effective
In The Visual Display of Quantitative Information (1983), Edward Tufte wrote what remains the most influential book on data visualization and he distilled effective design down to one principle: "Above all else, show the data."
An effective visualization is:
Clear. Within seconds, people should grasp the message. Viewers do not have to study the chart, read a long caption or check external context to see what it shows. When the main insight takes more than ten seconds to get out, the visualization has missed its main job.
Accurate. The visual representation matches the underlying data exactly. Visual element sizes match the relative magnitudes of the data they represent. There is no truncation, distortion or selective presentation that alters what the viewer takes away.
Efficient. Visual elements must serve the data. Background colors, decorative borders, 3D effects and ornamental grid lines bring in visual noise that does not add any information. They get in the way of comprehension by offering the eye more elements to process and ignore.
Purposeful. Purposeful means a chart is made for a specific audience making a specific decision. An executive presentation calls for a different chart from what a technical team deep-dive needs and that again differs from what goes into a general-audience report. Different contexts demand different visualizations of the same data.
Honest. This means not misleading through selective framing, a truncated axis, a cherry-picked time window or visual tricks that distort what appears to be the magnitude.
Accessible: Readable by people with color vision deficiency (approximately 8% of men and 0.5% of women have some form of color blindness), and legible at varying sizes and resolutions.
The five-second test, show the visualization to someone who does not know the data.[8] Have that person describe what they saw after five seconds. If they cannot say what the main finding is, the visualization needs redesign.
| Chart Type | Best For | Common Misuse |
|---|---|---|
| Bar chart | Comparing discrete categories | Using when a line chart would better show change over time |
| Line chart | Showing change over time | Connecting non-continuous categorical data |
| Scatter plot | Showing correlation between two continuous variables | Using with too many data points without aggregation |
| Pie chart | Showing part-to-whole with 2-3 categories | Using with more than 4 slices, making comparison impossible |
| Heatmap | Showing patterns across two categorical dimensions | Using without clear color scale or legend |
| Box plot | Showing distribution and variance | Presenting to non-technical audiences without explanation |
Choosing the Right Chart Type
Selecting a chart type for its looks, novelty or what comes by default from the visualization tool instead of what the data. The analytical purpose need is the most frequent error in data visualization.
Different relationships in data require different visual encodings to be communicated accurately.
Comparison Across Categories: Bar Charts
When comparing discrete categories at a point in time, bar charts are almost always the right choice.[4] Human visual perception is accurate at comparing lengths along a common baseline in ways that it is not accurate at comparing angles, areas, or volumes.
Vertical bars (column charts) work for small numbers of categories (typically under 8) with short labels.
Horizontal bars. These work best for larger numbers of categories, for categories that have long names such as country names, product names and job titles and when the ranking of values is the main message.
Sorted by value, not alphabetically, makes it possible to recognize patterns at a glance. When a bar chart is sorted by descending value, it shows which categories are largest and how much gap there is between them at a single look. To grasp the distribution, the viewer has to mentally reorder when the same data is sorted alphabetically.
Example: When the New York Times visualizes Senate or House margins by state or district, they consistently use horizontal bar charts sorted by margin of victory. The pattern which states are safely partisan, which are competitive, is immediately visible. An alphabetical arrangement by state name would obscure the pattern entirely.
Change Over Time: Line Charts
Line charts are the canonical choice for temporal data because the connecting lines visually encode the relationship between consecutive time periods. The horizontal axis represents time; the vertical axis represents the measured value; the slope of the connecting line communicates rate of change.
Guidelines:
- Maintain regular time intervals on the horizontal axis. Visual distortions appear in the implied rate of change when intervals are irregular.
- Count data such as the number of events or the number of customers should begin its y-axis at zero. Bars that do not take in zero cannot be compared meaningfully to each other when one shows 1,000 customers and the other shows 1,100 customers.
- When rate data comes out as percentages, ratios or indices, a non-zero baseline works well if it is clearly labeled since the absolute level counts for less than the change.
- Include reference lines for targets, historical averages, or prior period values to provide context.
- Keep it to 4 to 5 lines before the chart gets too crowded to read. More series call for small multiples (separate charts with shared scales)[6].
Distribution: Histograms, Box Plots, and Violin Plots
When the distribution of values is the insight and not just the average or total, standard bar charts do not work.
Histograms take the range of values and put them into equal-width bins. They then show how often observations fall into each bin and that reveals what shape the distribution has. Is it roughly symmetric? Is it right-skewed? Is it multi-modal? Does it have long tails?
Example. With histograms in its pricing analytics, Airbnb looks at how listing prices are distributed. Most listings cluster between $80 and $120 and there is a long tail of luxury properties going up to thousands per night that the simple average price of $150/night masks.
The histogram makes this visible; the average conceals it.
Box plots, also called box-and-whisker charts, show distribution compactly by putting the interquartile range (from the 25th to the 75th percentile) in the box, the median on the line within it, the whiskers extending to the full data range except for outliers and outliers plotted separately.
Box plots enable comparison of distributions across many categories simultaneously.
Violin plots. These bring together the summary information of box plots with a density curve that shows the full shape of the distribution. They give more information than either plot by itself.
Part-to-Whole Relationships: Stacked Bars and Treemaps
Pie charts are the most overused and most reliably ineffective chart type. Angles and arc lengths are poor for human visual comparison and research time after time finds that people read pie charts less accurately than bar charts that show the same data.
Almost never is the rule for using a pie chart, though there are three cases where you should use it. These are (1) having 5 or fewer slices, (2) one slice representing a dominant majority over 60 percent whose visual dominance is the message itself and (3) labeling each slice directly instead of depending on a color-coded legend.
Stacked bar charts give a more accurate picture of part-to-whole relationships than pies do and they also allow comparison across multiple groups or time periods. Total bar height lets you compare totals and segment proportions let you compare composition.
Treemaps visualize hierarchical data as nested rectangles, where the area of each rectangle corresponds to its value. They work well for large numbers of categories organized hierarchically (e.g., company revenue by division, subdivided by product line) where both the total and the composition matter.
Relationship Between Variables: Scatter Plots
Scatter plots show relationships between two continuous variables. Every observation is a point and the x-position holds one variable and the y-position holds the other.
Effective scatter plot design:
- Put a trend line in (linear regression or LOESS) to show the overall direction and strength of the relationship more clearly
- Within the scatter, use color to tell apart 3 to 4 categories at most since more categories bring about color conflicts that cannot be resolved.
- Annotate interesting outliers with text labels, the outlier points often contain the most actionable insight
- Report the correlation coefficient or R-squared when the strength of the relationship is important
- Log-scale axes for data spanning multiple orders of magnitude (populations, revenues, frequencies)
Example: The Gapminder visualizations created by Hans Rosling-most famously showing life expectancy versus income per capita across countries-use scatter plots with bubble size encoding a third variable (population) and animation showing change over time.
Decades of improvement in global health that raw numbers did not show have been revealed by these visualizations.
Design Principles for Every Chart
The Data-Ink Ratio
Data-ink ratio. In his data-ink ratio, Edward Tufte calculates how much of a chart's ink goes to actual data compared with everything else. A chart that has many gridlines, decorative borders, 3D effects and a heavy legend has a low data-ink ratio. With minimal visual support, the same data has a high data-ink ratio.
Within reason, Tufte prescribes maximizing the data-ink ratio.[1] Remove any element that does not carry data information. Here is what should be considered for removal:
- Background colors and gradients (add visual noise, zero information)
- Grid lines that are heavy get in the way (light, subtle guide lines are fine when they help people read values though heavy lines compete with the data).
- 3D effects (distort perception, never improve understanding)
- Decorative borders and boxes around charts and legends
- Redundant legends when direct labeling is possible
- Axis labels that repeat information visible elsewhere
Once this reduction is done, what remains is a chart in which every visual element earns its place.
Direct Labeling vs. Legends
Multiple lines, bars or areas on a chart need a legend for the viewer to link colors between the legend and the chart and that is a cognitive step that slows understanding. Direct labeling puts the label at or near the data series itself and that gets rid of this step.[3]
Four trend lines on a line chart can be identified instantly by putting the country or metric name at the right end of each line. A bar chart that displays several segments is easier to read when each segment is marked inside the bar instead of using a separate legend box.
Direct labeling is particularly important in presentations, where the audience has limited time and cannot reference back to a legend while following the presenter.
Color as a Functional Tool
Color in visualization is a tool for communication, not decoration. Functional principles:
- Purposeful: use color to encode meaningful information (category membership, magnitude, status) rather than to make charts look appealing
- Restrained. Categorical palettes should be limited to 3 to 5 distinct colors. Palettes that have more colors than this instead produce confusion instead of clarity.
- Consistent. Use the same color for the same category on every chart in a report or dashboard. A reader who thinks of blue as North America will have to actively re-learn the encoding if they run into a chart where blue means Europe.
- Sequential. Use light-to-dark gradients for ordered continuous data such as a choropleth map of unemployment rate that shades consistently from light for low to dark for high.
- Diverging: use a two-color gradient with a neutral midpoint for data that has a meaningful middle value (profit/loss, above/below average, change from baseline)
- Accessible: avoid red-green combinations, the most common form of color blindness; test charts in grayscale to verify that color-encoded information is still distinguishable without color
ColorBrewer (colorbrewer2.org), developed by cartographer Cynthia Brewer at Penn State, provides scientifically validated palettes for different data types that are both perceptually effective and accessible to color-blind viewers.[5]
Annotation and Context
Without context, a number is not insight. Effective visualizations add annotations to their charts that give viewers the context they need to make sense of what they see.
Event annotations. Major external events appear on time series charts as event annotations. Revenue charts that show a spike in month 8 but do not mark that month 8 was when the company appeared in a major publication are incomplete. An annotation makes what would otherwise be a visible anomaly actionable understanding.
Goal and benchmark lines. One chart shows targets, industry averages or previous year values as reference lines so viewers can compare performance against relevant standards without having to look at separate charts.
Outlier call-outs: identify interesting individual points with text labels. The most interesting data is often in the exceptions, and callouts direct attention to the points worth examining.
Example. During the pandemic, the Financial Times' COVID-19 data visualizations that got broad audiences noticed themselves by having lots of annotations.
On case and death curves, policy interventions including lockdowns, reopenings and vaccine rollouts appeared and viewers could see visually how interventions related to outcomes. Raw trend data was turned by the annotations into a narrative of cause and effect.
How Visualizations Deceive
How charts mislead needs to be understood just as well as how to design honest ones. Accidental as well as deliberate manipulation follows patterns that are predictable.
Truncated Y-Axis
When a bar chart's y-axis begins at anything other than zero, apparent differences get magnified far beyond what they really are. Bars showing values of 98 and 100 look almost the same on an axis ranging from 0 to 200. They look dramatically different on an axis that starts at 96.
This approach has appeared often in political ads, public health messages and financial reports. On a cable news channel, a chart showing unemployment over 12 months starts its y-axis at 6%. That makes a drop from 6.4% to 6.2% look like a big decline.
Making a small improvement appear transformative, a drug company displays clinical trial results on an axis that begins just below the lowest value observed.
Rule. Bar charts must begin at zero. Non-zero baselines can be used in line charts when what matters most is the trend and not the absolute level and that should be clearly marked and come with the absolute values.
Cherry-Picked Time Windows
Selecting a favorable start or end date for a time series chart can create an impression of trend that contradicts the longer-term reality.
A stock that has recovered 40% from its lowest point in years can be presented as showing strong growth if the chart starts at the trough. The same stock shown over five years might reveal that it has lost 30% of its value over the longer period. Both presentations are technically accurate; both create profoundly different impressions.
Defense. Display the full relevant time period. When truncation becomes necessary because of space limits, clearly mark the start date, give context for what comes before it and do not use time windows that were picked to make the visual impression better.
Dual-Axis Charts
When charts have two y-axes, one for each of two different variables, they invite systematic misinterpretation. That is because the two scales are independently chosen and either scale can be adjusted arbitrarily to manipulate what appears to be the relationship between the two series.
A dual-axis chart showing ice cream sales and drowning deaths can be drawn to show perfect correlation, no correlation, or inverse correlation simply by rescaling one of the axes. There is no objective "correct" scaling.
Design choices create any visual relationship that the chart seems to show. It is not a property of the data.
Better alternative. When two separate charts share a common x-axis, viewers can compare patterns without reading into the data a strength of relationship that it may not have.
Area Distortion
To represent quantities as circles or bubbles, the area of the circle needs to scale linearly with the data value. As area grows with the square of the radius, the radius has to scale with the square root of the value. When the radius doubles, the area quadruples and that gives a 4x visual impression for a 2x difference in data.
Visualizations that use circles to stand for population, revenue or market share run into this error often. Visually, larger values get far more representation when radius instead of area is scaled to the data value.
Bubble charts by Hans Rosling at Gapminder get the bubble area right and that takes explicit implementation because most visualization tools default to scaling by radius.
Presenting Data for Different Audiences
Different audiences, different purposes and different media all call for different visualizations of the same analytical finding.[7]
Executive Audiences
The key finding must be pulled out by executives in under 30 seconds and they have to decide if action is needed. Design it that way:
- One chart, one message. Multiple charts on a single slide create the cognitive burden of determining which to look at first and how they relate.
- Single important numbers should be displayed on KPI cards along with directional indicators (arrows and color coding) that say whether performance is favorable or concerning.
- Directly on the chart put the main point as an annotation and add this: "Conversion rate is 12 percentage points above what Q3 target calls for and search channel improvement is driving most of that."
- Provide context (benchmark comparisons, trend) but keep it minimal.
- Include a clear implication or recommended action when one exists.
Technical Audiences
When they want to evaluate findings properly, data scientists, engineers and analysts most often need the full methodological context.
- Include confidence intervals, sample sizes, and p-values where relevant
- Show multiple views of the same data (distribution alongside trend, individual points alongside summary)
- Explain the analysis approach in the visualization title or caption
- Interactive exploration is valuable-technical audiences will want to examine assumptions
- Complexity is acceptable when it serves understanding
General Audiences
Data visualization aimed at the public (journalism, public health and consumer reports) has to take into account wide differences in how people understand data.
- Only bar charts, line charts and simple scatter plots are familiar chart types. General audiences do not have patience for the explanation required by novel or complex chart types.
- Conclusion-oriented titles go like this. Say "Sales increased 15% in Q3" instead of "Sales by Quarter." They tell the reader what the chart shows and they do not just name the variables that are plotted.
- Generous annotations explaining context, methodology, and implications
- One insight per visualization; multiple insights require multiple charts or a narrative structure connecting them
- Avoid jargon in axis labels and legends
Presentation vs. Report Context
A chart designed for a live presentation-to be seen at a distance, glanced at briefly while the presenter speaks - requires different design than a chart in a written report that readers will examine closely.
Presentation charts: much larger text (the minimum readable font size projected on a screen from 30 feet is substantially larger than in print), single clear message, minimal detail, visible from the back of the room.
Report charts. These can take in more detail, multiple data series, reference lines as well as smaller text that readers can study at their own pace. Methodology notes and statistical details that would distract in a presentation can go into report charts.
A chart optimized for one context fails in the other. The most common failure mode: elaborate, information-dense report charts dropped into presentation slides without redesign.
The Ethics of Visualization
Each design decision is an editorial choice. What kind of chart is used, how the axes are scaled, what color is chosen, what annotations appear and what time windows are shown all help form the impression that the viewer gets. And this responsibility is not optional.
Alberto Cairo, in How Charts Lie: Getting Smarter about Visual Information (2019), outlines the ethical obligations of anyone creating data visualizations:[2]
- Show the data faithfully even when the truth is inconvenient for the organization, client or preferred conclusion.
- Provide sufficient context for accurate interpretation, a chart that shows only part of the picture, even if it shows that part accurately, can mislead as surely as an inaccurate chart
- Acknowledge uncertainty instead of giving an impression of false precision. data comes with error bars and limits and hiding them misleads.
- Design for your audience's actual literacy level rather than assuming universal statistical sophistication
- Visual perception biases should never be exploited to manipulate what viewers think of a chart and those biases are dual-axis charts, truncated axes and area distortion.
Visualization equaled persuasion for Nightingale. To make the biggest impact on policymakers, she picked her chart type, colors and design deliberately. Her argument was also honest and the data really showed that disease killed more soldiers than combat and her visualization made that truth impossible to miss.
The best visualizations do not tell people what to think. They make the data so clear that the conclusion becomes inescapable.
What Research Shows About Data Visualization Effectiveness
How humans perceive and decode visual representations of information is the subject of empirical studies of data visualization and practitioners should draw on the body of findings that comes from these studies for every design choice they make.
William Cleveland and Robert McGill did the foundational work. Their 1984 paper Graphical Perception. Theory, Experimentation and Application to the Development of Graphical Methods appeared in the Journal of the American Statistical Association. It set up a hierarchy of visual encodings based on how well humans perceive.
Their controlled experiments showed that humans are most accurate at reading values encoded as position along a common scale (bar charts), then length, then angle, then area, and least accurate at reading values encoded as color saturation or volume.
This hierarchy gives a direct explanation for why bar charts do better than pie charts at comparison tasks and why 3D charts are almost always worse than their 2D counterparts.
Perceptual research together with aesthetic principles drawn from the history of statistical graphics formed the basis of Edward Tufte's prescriptive system. His 1983 book The Visual Display of Quantitative Information is still the most cited work in the field.
This was not just a matter of aesthetic preference and his data-ink ratio concept captured the finding that visual complexity comes with cognitive costs.
Kosslyn (1994) and Zacks and Tversky (1999) carried out subsequent research that put numbers on these costs. When chart elements get denser, value extraction tasks take longer to process and have higher error rates.
By removing non-data ink, Tufte gave a practical instruction in effect that minimized cognitive load.
Alberto Cairo has contributed research that connects visualization design to comprehension and deception. His books The Functional Art (2012) and How Charts Lie (2019) are now standard texts in data journalism programs.
In the data journalism community, his work has had influence and publications like The New York Times, The Guardian. The Financial Times have taken up his annotation principles and put them into their graphics standards.
Within the first two to three seconds before looking at the title, legend or annotations, readers most often make their first interpretation of a chart, which is why the five-second test has become a standard usability test for how well visualizations work. Show the chart to someone who does not know the data for five seconds and then ask what they saw.
Research by Cindy Xiong, Lisanne van Weelden, and Steven Franconeri, published in 2019 in IEEE Transactions on Visualization and Computer Graphics, examined how chart design influences the causal inferences viewers draw.
In the study, participants gave different attributions of causality to identical data shown as a bar chart versus a line chart. Their result was striking.
Continuous trends and causal links between adjacent data points were what line charts got people to infer and bar charts got them to compare categorically and as discrete things.
This research provides empirical grounding for the conventional wisdom that line charts should be used for temporal data: the visual encoding actively suggests the kind of relationship (continuous change over time) that temporal data typically represents.
Real-World Case Studies in Visualization
The Financial Times COVID-19 Charts: Annotation as Journalism. The Financial Times' John Burn-Murdoch became one of the most visible data journalists of 2020 through his COVID-19 case trajectory visualizations.
Systematic annotation set Burn-Murdoch's charts apart and not by introducing new chart types. Policy interventions like lockdowns and reopenings, variant emergence and vaccine rollout milestones appeared on case and death curves that let readers see visually how events related to outcomes.
Without drawing conclusions, the FT showed the data through its method and event markers were annotated but readers had to interpret the visual link between event markers and any change that followed.
Millions of shares went to the charts that policymakers in several countries cited as well. The charts show how annotation turns raw trend data into accessible public health communication and they make a case study.
The Upshot's Electoral Maps: Choosing Uncertainty-Honest Presentation. The New York Times' data journalism unit The Upshot, led by Nate Cohn and Amanda Cox (who has since moved to the U.S. Census Bureau), developed a "live needle" election forecast visualization in 2016 that displayed the probability distribution of outcomes rather than a single point estimate.
Designed to get across uncertainty instead of false precision, the visualization showed the probability landscape across possible scenarios and not "Clinton will win".
Deliberately made, the design choice comes from Cohn and Cox who have written about the journalistic duty to communicate uncertainty honestly instead of turning probability distributions into single numbers that give the impression of certainty.
Controversy came from the needle because its visual form as a quivering meter was emotionally upsetting to viewers in a way that numbers were not. That in turn showed Cairo's point that visual form controls how people feel and not only how they think.
Hans Rosling's Gapminder: Animated Data as Narrative. Hans Rosling's animated bubble charts, first presented at TED in 2006, represented a case study in using unfamiliar chart type to reveal a pattern that conventional presentation had hidden.
Simultaneously animated over time and with bubble size encoding population, Rosling showed 200 years of life expectancy and income data for 200 countries at once.[9]
The animation showed that the conventional "developed world vs. developing world" binary was out of date and that the global pattern of life expectancy and income had changed fundamentally through the 20th century as most countries converged toward longer and healthier lives. The 2006 TED talk has gotten more than 15 million views.
Following Rosling's approach, the BBC as well as national statistical offices in Sweden and the UK took up his method for public communication of demographic data. The main design rule was that the animation gave a narrative arc that static charts cannot give and made the change over time the story instead of a footnote.
USA Today's Signature Style as a Cautionary Example. When it was founded in 1982, USA Today took the lead with a style of bold, colorful and simplified infographics that went on to influence a whole generation of newspaper data visualization.
Their signature "Snapshots" (simple charts that have large type and bright colors for quick reading) were widely copied.
The style also built in what Tufte called chartjunk. That was decorative elements, unnecessary 3D effects as well as stylistic complexity that instead of enhancing comprehension reduced it.
Reader comprehension studies carried out in the 1990s and reported in Howard Wainer's book Graphic Discovery showed that people reading USA Today-style graphics made more interpretation errors time after time than people reading the same data in a simpler format.
In visualization courses, the USA Today example has set up as a standard reference for showing the tension between aesthetic appeal that draws readers and comprehension accuracy that is what the visualization is actually for.
Common Visualization Mistakes and What Evidence Shows
Mistake 1. Misusing Pie Charts. Multiple labs and decades of research have found humans to be poor at comparing angles and arc lengths and that is the consistent finding on how people comprehend pie charts.
William Cleveland and Robert McGill did their 1984 experiments to show that bar charts produce less error than pie charts when people compare things.
In 2016, Skau and Kosara ("Arcs, Angles or Areas") looked at this in Computer Graphics Forum, where they found that angle was the least important cue for reading pie charts and that donut charts were just as accurate as traditional pie charts.
Pie charts continue to be one of the most used chart types in business presentations even so. The reason is psychological rather than analytical. Pie charts are visually familiar and give the impression that the whole (the pie stands for 100 percent of something) is being communicated in a way that bars do not.
Here is a situation where how something feels right conflicts directly with evidence on what communicates correctly.
Mistake 2. Truncating Axes to Mislead. Truncated y-axes are a well-known visual trick for deception, discussed by Alberto Cairo in How Charts Lie. They turn up time after time in political advertising, financial marketing and health communication.
This approach works because human perception naturally takes bars as representing the full range from zero and that is a cognitive shortcut truncation exploits.
Starting bar charts at zero is both the ethical and practical rule. Line charts require compressed axes when what matters most is the trend rather than the absolute level and the chart needs explicit labeling of the axis range.
Mistake 3. Color-coding for more than five categories. Colin Ware did research that he summarized in his 2004 book Information Visualization. Perception for Design. It showed that people can reliably tell apart about seven plus or minus two values through pre-attentive visual processing. That is the instant, effortless perception that occurs before focused attention.
With color in particular, people can reliably tell apart only four to six categories under real-world chart-reading conditions.
Rather than making visual comparisons, charts that use ten or twelve colors to encode categorical data give viewers a task of repeated look-up. Data points have to be matched to legend colors over and over instead of patterns being seen directly.
For communication tasks, visualization research time after time shows that there is value in trading off some data completeness by limiting categorical color encoding to four or five distinct categories and putting the rest into "other."
Sources
- Tufte, Edward. The Visual Display of Quantitative Information. Graphics Press, 2001.
- Cairo, Alberto. How Charts Lie: Getting Smarter about Visual Information. W.W. Norton, 2019.
- Knaflic, Cole Nussbaumer. Storytelling with Data. Wiley, 2015.
- Few, Stephen. Show Me the Numbers: Designing Tables and Graphs to Enlighten. Analytics Press, 2012.
- Brewer, Cynthia. "ColorBrewer: Color Advice for Maps." colorbrewer2.org.
- Wickham, Hadley. ggplot2: Elegant Graphics for Data Analysis. Springer, 2016. View source
- Schwabish, Jonathan. "An Economist's Guide to Visualizing Data." Journal of Economic Perspectives, 2014. View source
- Nielsen Norman Group. "Data Visualization for Users." .
- Rosling, Hans. "The Best Stats You've Never Seen." TED Talk, 2006.
- Nightingale, Florence. Notes on Matters Affecting the Health, Efficiency, and Hospital Administration of the British Army. Harrison and Sons, 1858.
Further Reading
- Bostock, Mike. "D3.js: Data-Driven Documents." d3js.org. View source








