CS-GY 6313 - Fall 2025
NYU Tandon School of Engineering
2025-09-26
“Visual thinking consists of a series of acts of attention, driving eye movements, and tuning our pattern finding circuits” - Colin Ware
Image from Wikipedia: Human brain
Image from Wikipedia: Human brain
Material from Colin Ware’s book
Image from “Eye and Brain: The Psychology of Seeing”, Gregory
Material from Colin Ware’s book
Material from Colin Ware’s book
Material from Colin Ware’s book
Material from Colin Ware’s book
Anne Treisman studied how to find patterns when surrounded by distractors
For some configurations, search time does not depend on number of distractors
Material from Colin Ware’s book
Material from Colin Ware’s book
Material from Matt Berger
We can complete incomplete shapes
Implications: - Visualizations can be unintentionally misleading - Sometimes only necessary to show sparse marks to convey trend
Material from Matt Berger
Elements with the same visual properties are perceived as grouped
Material from Matt Berger and Enrico Bertini
Elements that are spatially close are perceived as grouped
Material from Matt Berger and Enrico Bertini
Explicit visual encoding of enclosure depicts grouping
Material from Matt Berger and Enrico Bertini
Objects connected together are perceived as a group
Material from Enrico Bertini
Material from Enrico Bertini
Wikipedia: Just-noticeable difference
Slides based on material from Prof. Enrico Bertini
Task: Judge the percentage that the smaller value is of the larger
Slides based on material from Prof. Enrico Bertini
Position > Length and Angle > Area
Slides based on material from Prof. Enrico Bertini
Application: - Use position for most important comparisons - Use color for categorical distinctions - Avoid 3D for quantitative data
Slides based on material from Prof. Enrico Bertini
How many distinct values can be distinguished within a channel?
Depends on: - Channel properties - Spatial arrangement - Size (resolution) - Cardinality
Practical limits: - Line width: ~3 levels - Color hues: 5-6 maximum - Symbol shapes: 5-6 maximum
Material from STAT4580
Slides based on material from Prof. Enrico Bertini
Finding the red circle requires serial search
Slides based on material from Prof. Enrico Bertini
Combining color AND shape requires attentive processing
Slides based on material from Prof. Enrico Bertini
Amount of interference between channels
Some channel combinations interfere more than others
Slides based on material from Prof. Enrico Bertini
Humans are better at relative comparisons than absolute judgments
Transform data values to visual values
// Set dimensions
const width = 500, height = 300;
const margin = {top: 20, right: 20, bottom: 30, left: 40};
// Create SVG
const svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
// Create scales
const x = d3.scaleBand()
.range([margin.left, width - margin.right])
.padding(0.1);
const y = d3.scaleLinear()
.range([height - margin.bottom, margin.top]);
// Load and visualize data
d3.csv("data.csv").then(data => {
// Set domains
x.domain(data.map(d => d.category));
y.domain([0, d3.max(data, d => +d.value)]);
// Create bars
svg.selectAll(".bar")
.data(data)
.enter().append("rect")
.attr("class", "bar")
.attr("x", d => x(d.category))
.attr("width", x.bandwidth())
.attr("y", d => y(d.value))
.attr("height", d => height - margin.bottom - y(d.value));
});
When to use which? - Vega-Lite: Exploration, standard charts - D3: Custom visualizations, interactions
Color Theory and D3 Scales - Deep dive into color perception and advanced D3 techniques