D3 Mega List

Here is an updated list of d3 examples, sorted alphabetically. Most of the D3 examples in this list come from this excel list but I also added some updates and my examples to push the list over 2K. Examples are really helpful when doing any kind of development so I am hoping that this big list of D3 examples will be a valuable resource. Bookmark and share with others. Here is the huge list of D3 demos:

  1. “Elbow” Dendrogram
  2. 113th U.S. Congressional Districts
  3. 20 years of the english premier football league
  4. 20000 points in random motion
  5. 2012 NFL Conference Champs
  6. 2012-2013 NBA Salary Breakdown
  7. 2013 Country Population World Map in D3.js
  8. 25 great circles
  9. 2D Matrix Decomposition
  10. 300 Outings
  11. 3D bar chart with D3.js and x3dom
  12. 3D scatter plot using d3 and x3dom
  13. 401k Fees Vary Widely for Similar Companies (Scatter)
  14. 512 Paths to the White House
  15. 582781
  16. 619560
  17. 777029
  18. 779986
  19. 7th Grade Graphs with D3
  20. 9-Patch Quilt Generator
  21. 908051
  22. 908382
  23. 913077
  24. A Bar Chart
  25. A Bar Chart, Part 1
  26. A Bar Chart, Part 2
  27. A Chicago Divided by Killings
  28. A Christmas Carol
  29. A CoffeeScript console for d3.js visualization
  30. A fun, difficult introduction to d3
  31. A JSNetworkX example
  32. A KoExtensions example: #d3js KnockoutJS, RavenDB, WebAPI, Bootstrap
  33. A line chart plotting unit sales, colored by price for d3 data visualisations
  34. A map of translations of Othello into German
  35. A marimekko chart showing SKUs grouped by owner and brand.
  36. A matrix chart where each point is replaced with a marimekko
  37. A Migration of Unmarried Men
  38. A physics model of a physics model
  39. A Race to Entitlement
  40. A Radius Follows the Mouse
  41. A sea of tweets: what are italians saying about the election
  42. A simpler variation of Kepler’s Tally
  43. A Slice of Canadian Life
  44. A sprintf-like function using d3,js
  45. A statistical model for blood pressure in patients with hypertension
  46. A Visit From The Goon Squad – Interactive Character Map
  47. Abusing The Force Talk
  48. AC Milan vs Juventus
  49. Across U.S. Companies, Tax Rates Vary Greatly
  50. Adaptive Resampling
  51. Adaptive Resampling
  52. Addepar
  53. Advanced object constancy
  54. Advanced visualizations with D3.js and Kartograph
  55. Adventures in D3
  56. AFL Brownlow Medalists
  57. AFL Brownlow Medalists
  58. Aid Explorer
  59. Air pollution
  60. Airbnb vs Hotels: A Price Comparison
  61. Airocean World
  62. Airocean World (Dymaxion) map
  63. Airy’s Minimum Error
  64. Airy’s Minimum Error
  65. Aitoff
  66. Aitoff Graticule
  67. Alaska Albers
  68. Albers Equal-Area Conic
  69. Albers Projection
  70. Albers Siberia
  71. Albers Tiles
  72. Albers USA
  73. Albers USA Projection
  74. Albers with Resampling
  75. Albers without Resampling
  76. AlbersUSA + PR
  77. All the Medalists: Men’s 100-Meter Freestyle
  78. Alpha-shapes aka concave hulls
  79. Alternative D3.js documentation
  80. American Forces in Afghanistan and Iraq
  81. Among the Oscar Contenders, a Host of Connections
  82. An inlet to Tributary
  83. An introduction to d3.js video with synced visualisation
  84. An overview of the Hong Kong budget in 2013-14
  85. Analog clock
  86. Andrew Berls, Visualizing your bash history with d3.js
  87. Angel List compensation scatterplot
  88. AngularJS + D3.js = Radian
  89. Animated Bézier Curves
  90. Animated Bubble Chart of Gates Educational Donations
  91. Animated bubble charts for school data analysis
  92. Animated Clipped textPath
  93. Animated Quasicrystals
  94. Animated Sankey (alluvial) diagram
  95. Animated Spirographs
  96. Animated textPath
  97. Animated tree
  98. Animated Trigonometry
  99. Annual traffic entering from station to Paris
  100. Antimeridian Cutting
  101. Antipodes
  102. antulik’s Gists
  103. Apollonian Gasket
  104. Apple logo with gradient
  105. Arc Deduplication
  106. Arc Tween (Clock)
  107. Arc Tween Commented Example
  108. Arcs Around
  109. Area chart
  110. Area Chart
  111. Area Choropleth
  112. Area Transition
  113. Area with Missing Data
  114. Argentina Census
  115. Arlington Visual Budget
  116. Armadillo Projection
  117. Arnold’s Cat Map
  118. Array Subclassing Test
  119. Arrows are Beautiful
  120. Article-Level Metrics over time
  121. Asia Lambert Conic Conformal
  122. At the Democratic Convention the Words Being Used
  123. At the National Conventions the Words They Used
  124. Atlantis
  125. Atlas zur Landtagswahl Bayern 2013
  126. AttrTween, Transitions and MV* in Reusable D3
  127. Audio Spectrum Analyzer
  128. August Projection
  129. Autofocus
  130. Autoforking
  131. Automatic floating labels using d3 force-layout
  132. Automatic Projection Tiles
  133. Automatically sizing text
  134. Axis Component
  135. Axis Examples
  136. Axis Styling
  137. Azimuth and Distance from London
  138. Azimuthal Equidistant
  139. Azimuthal Equidistant
  140. Azimuthal Projections
  141. Baby Names in England & Wales
  142. Backbone-D3: Simple visualisations of Backbone collections via D3.js
  143. Baker Dinomic
  144. bar + sum: d3.js & angular.js
  145. bar + sum: d3.js & backbone.js
  146. bar + sum: d3.js & ember.js
  147. bar + sum: reusable d3.js
  148. bar + sum: vanilla d3.js
  149. Bar Chart
  150. Bar chart code generator and online editor
  151. Bar Chart I
  152. Bar Chart II
  153. Bar Chart II
  154. Bar Chart II
  155. Bar Chart II
  156. Bar Chart III
  157. Bar Chart III
  158. Bar Chart III
  159. Bar Chart with Negative Values
  160. barStack (flex layout)
  161. Bart particles
  162. Bartholomew’s Regional Projection
  163. Base64.js
  164. Baseball 2012 Predictions based on past 6 years
  165. Basic Gantt Chart
  166. Basic Reusable Slopegraph
  167. Bathymetry of Lake Michigan
  168. Bay Area d3 User Group
  169. Bay Area earthquake responses by zip code
  170. BBEdit Preferences
  171. Bearcart
  172. Beautiful Spiral Things
  173. Beautiful visualizations with D3.js
  174. Beer taxes in your state – CNNMoney
  175. Beeswarm plot
  176. Behind the Australian Financial Review’s Budget Explorer
  177. Berghaus Star
  178. Better force layout node selection
  179. Bharat Bhole
  180. Bibly v2: Visualizing word distribution within the KJV bible
  181. Bieber Fever Meter with HTML5 Web Socket d3.js and Pusher
  182. Big Money in Tax Breaks
  183. Biham-Middleton-Levine Traffic Model
  184. Bilevel Partition
  185. Binify + D3 = Gorgeous honeycomb maps
  186. Binned Line Chart
  187. BioVis Project: Identification of Mutations that Affect Protein Function
  188. BIS Derivative Data
  189. Bitdeli: Custom analytics with Python and GitHub
  190. Bitly link Co-occurrence
  191. Bivariate Area Chart
  192. Bivariate Hexbin Map
  193. Bl.ocks RSS
  194. Blobular
  195. Blocky Counties
  196. Blocky Counties
  197. Bloom Filters
  198. Blur/fade effect
  199. Boeing 777 Descent Profiles, SFO
  200. Boggs Eumorphic
  201. Bonne Projection
  202. Boomstick motion
  203. Boomstick motion coffee
  204. Boston d3.js User Group
  205. Boulder County Wildfires
  206. Bounded Force Layout
  207. Box plot
  208. Bracket Layout
  209. Briesemeister
  210. Bromley
  211. Browser usage plurality
  212. Brush
  213. Brush as Slider
  214. Brush Handles
  215. Brush Snapping
  216. Brush Snapping II
  217. Brush Transitions
  218. Brushable Network
  219. Brushable Network II
  220. Bubble Chart
  221. Bubble My Page Visualization
  222. Bubbles
  223. Bubbles generator using a simplex noise
  224. Build world clocks
  225. Build Your Own Graph!
  226. Building a lightweight, flexible D3.js dashboard
  227. Building a tree diagram
  228. Building a UML editor in JS
  229. Building Cubic Hamiltonian Graphs from LCF Notation
  230. BulleT (a variant of mbostock’s Bullet Charts)
  231. Bullet chart variant
  232. Bullet Charts
  233. Bump Chart with rCharts and Rickshaw
  234. Caged/d3-tip
  235. Calculating quadtree bounding boxes and displaying them in leaflet
  236. Calendar View
  237. Calendar View
  238. California Population Density
  239. Calkin-Wilf Tree
  240. Calroc
  241. Calroc: Web as Theater
  242. Can people localize sounds with one functional ear?
  243. Can’t we all get along?
  244. Can’t we all get along?
  245. Candlestick charts
  246. Canvas Geometric Zooming
  247. Canvas Semantic Zooming
  248. Canvas Swarm
  249. Canvas Voronoi
  250. Canvas with d3 and Underscore
  251. Capturing Listeners
  252. Capturing Mousemove
  253. Caravaggio’s Bacco (1597)
  254. Carotid-Kundalini Fractal Explorer
  255. Carotid-Kundalini Fractal Explorer
  256. CartoDB + D3 Bubble Map
  257. CartoDB makes D3 maps a breeze
  258. Cartogram.js: Continuous Area Cartograms
  259. Case-Sensitivity and SVG-in-HTML
  260. Cassini
  261. Cellular automata
  262. Cellular automata
  263. Central Limit Theorem Visualized in D3
  264. CFCLTWiki
  265. Chained Transitions
  266. Chained Transitions
  267. Chamberlin Trimetric
  268. Chamberlin Trimetric Projection
  269. Changes in Employment and Salary by Industry
  270. Chart Wheel Visualization
  271. Chart.io: The Easiest Business Dashboard You’ll Ever Use
  272. Chartbuilder
  273. Chernoff faces
  274. Chernoff faces Fisheye Geodesic grid Hive plot Horizon chart Sankey diagram
  275. Chicago Lobbyists
  276. Chicago Ward Remap Outlines
  277. CHIPMOD
  278. Chord Diagram
  279. Chord diagram with Dex
  280. Chord Diagram: Dependencies Between Classes
  281. Chord diagram: Fade on Hover
  282. Chord diagram: Updating data
  283. Chord Layout Transitions
  284. Choropleth
  285. Choropleth classification systems
  286. Choropleth with interactive parameters for NYC data visualization
  287. Christchurch Earthquakes
  288. christophermanning’s bl.ocks
  289. Chroma + Phi (ϕ)
  290. Chrome Circle Precision Bug
  291. Chrome Circle Precision Bug
  292. Circle Packing
  293. Circle Packing with Zero Values
  294. Circle Packing Zero Values
  295. Circle-bound D3 force layout
  296. Circle-Circle Intersection
  297. Circle-Polygon Intersection
  298. Circles
  299. Circular heat chart
  300. Circular key scale
  301. Circular Layout
  302. Circular Layout (Arc)
  303. Circular Layout (Recursive)
  304. Circular Layout (Slider)
  305. Circular Segment
  306. Circular tree comparing the src directory for three versions of d3
  307. Classements par étape – Tour de France 2012
  308. Clean Up for Natural Earth GeoJSON
  309. click-to-center
  310. click-to-center via transform
  311. Click-to-Recenter Brush
  312. Click-to-Recenter Brush II
  313. Click-to-Zoom via Transform
  314. click-to-zoom via transform
  315. Clickme: Render JavaScript visualizations using R objects
  316. Clinical trials in Multiple Sclerosis
  317. Close Votes – visualizing voting similarities for the Dutch 2012 national elections
  318. Closest Point on Path
  319. Closest Point on Path II
  320. Closest Point to Segment
  321. Cluster Dendrogram
  322. Cluster Dendrogram
  323. Cluster Dendrogram II
  324. Cluster Force Layout IV
  325. Clustered Force Layout
  326. Clustered Force Layout
  327. Clustered Force Layout III
  328. Co-Authors Chords
  329. CodeFlower Source code visualization
  330. CoderDojo – Intro to D3.js
  331. Coffee Flavour Wheel
  332. Collapsible Force Layout
  333. Collapsible Force Layout
  334. Collapsible Force Layout
  335. Collapsible Indented Tree
  336. Collapsible Tree
  337. Collapsible tree
  338. Collapsible Tree Layout
  339. Collapsible tree with labels
  340. Collatz Graph: All Numbers Lead to One
  341. Collective.js.d3 Integrates D3.js in Plone
  342. Collider – a d3.js game
  343. Collignon Projection
  344. Collision Detection
  345. Collision Detection
  346. Collision Detection (Canvas)
  347. Collpase/expand nodes of a tree
  348. Collusion FireFox Addon
  349. Colony – Visualising Javascript projects and their dependencies
  350. Color Brewer
  351. Color scheme sunburst
  352. Color via Clipping
  353. Color: a color matching game
  354. Combinatorial Necklaces and Bracelets
  355. Combining D3 and Ember to Build Interactive Maps
  356. Comic Book Narrative Charts
  357. Commented bar chart code
  358. Comparing the same surveys by different polling organizations (polish)
  359. Comparison of MS trials baseline characteristics
  360. Complete Graphs
  361. Composite Map Projection
  362. Composition of Church Membership by State: 1890
  363. Computationally Endowed
  364. Concentric Circles Emanating
  365. Concurrent Transitions
  366. Concurrent Transitions II
  367. Confidence interval in poll surveys
  368. Congressional Network Analysis
  369. Connections in time
  370. Constrained Zoom
  371. Constraint relaxation 1
  372. Constraint relaxation 1
  373. Constraint relaxation 2
  374. Contextual Pie Menu in AngularJS
  375. Contour Plot
  376. Converting dynamic SVG to PNG with node.js, d3 and Imagemagick
  377. Convex Hull
  378. Conway’s game of life with JS and D3.js
  379. Conway’s Game of life as a scrolling background (broken link)
  380. Conway’s game of life in D3.js
  381. Coordinated visualizations for Consumer Packaged Goods
  382. Coordinated Visualizations: An introduction to crossfilter.js
  383. Copper: Wrapper around python packages with D3.js viz
  384. Cost of living
  385. Cost of Living – Parallel Coordinates
  386. Costa Rica shaded relief
  387. Counting Weekdays
  388. Countries and Capitals D3 Demo
  389. Countries and Capitals with D3 and Natural Earth
  390. Countries by Area
  391. County Circles
  392. CPI Interactive index, with Angular.js, bootstrap and d3.js
  393. Craig Retroazimuthal
  394. Craig Retroazimuthal
  395. Craster Parabolic
  396. Crayola Colour Chronology
  397. Create a JavaScript bar chart with D3
  398. Create any map of the world in SVG
  399. Creating a Polar Area Diagram
  400. Creating Animated Bubble Charts in D3
  401. Creating Animations and Transitions With D3
  402. Creating Basic Charts using d3.js
  403. Creating Reusable D3, MVC, and Events
  404. Creating Thumbnails with GraphicsMagick
  405. Crime in Mexico
  406. Cross-linked Mouseover
  407. Crossfilter.js
  408. CS6964: Information Visualization
  409. CSS3 Modal Button
  410. CSSdeck: Repulsion example
  411. CSSOM/SVG Test
  412. CSV Syntax Definition
  413. csv2tsv
  414. Cube Metrics Client (Node.js + WebSockets)
  415. Cube Realtime Map
  416. Cube: Time Series Data Collection & Analysis
  417. Cubism.js: Time Series Visualization
  418. Current Article Popularity Trends on Hacker News
  419. Current rainfall, weather and buoy information for Ventura County and nearby counties
  420. Curved Links
  421. Curved textPath
  422. Custom Axis
  423. Custom Cartesian Projection
  424. Custom Easing
  425. Custom Multi Scale Time Format Axis
  426. Custom Path and Area Generator
  427. Custom Projection
  428. Cylindrical Equal-Area
  429. D#.js and Hawaii Open Data
  430. D3 and Custom Data Attributes
  431. D3 and the Power of Projections : MapBrief
  432. D3 and WordPress
  433. D3 Arc Diagram
  434. D3 Bookmarklet
  435. D3 Chart Builder
  436. D3 concept browser
  437. D3 Conceptually
  438. D3 Dependencies
  439. D3 Dorling cartogram with rectangular states
  440. D3 examples
  441. D3 Examples on Heroku
  442. D3 flights
  443. D3 for Mere Mortals
  444. D3 Geo Boilerplate: Responsive, Zoom Limits, TopoJson, and Tooltips
  445. D3 GeoJSON and TopoJSON Online Renderer with Drag and Drop
  446. D3 Globe with Natural Earth Image wrapped around using Canvas
  447. D3 graph plugin
  448. D3 graphics in a Pergola SVG UI
  449. D3 heatmap using Backbone.js and CoffeeScript
  450. D3 Hello World
  451. D3 js slides
  452. D3 line chart for Angularjs
  453. D3 linked view with a hexagonal cartogram
  454. d3 meta-visualization
  455. D3 node focus
  456. d3 O’Clock: Building a Virtual Analog Clock with d3.js, Part I
  457. d3 pie plugin
  458. D3 PJAX
  459. d3 rendered with RaphaelJS for IE Compatibility
  460. D3 selection transform syntax
  461. d3 several time scales
  462. D3 Show Reel
  463. D3 Slopegraph I
  464. D3 Slopegraph II
  465. D3 tag at Empire5
  466. D3 tag at Exploring Data
  467. D3 Time Zone World Map
  468. D3 Treemap with Title Headers
  469. D3 Tutorials
  470. D3 Waveform Live demo
  471. D3 with HTML: divs as datavis
  472. d3 workshop
  473. D3 Workshop Slides
  474. D3 World Map Game
  475. D3 World Map that Zooms to each Country on Click
  476. D3 World Map with Country Tooltips and Colors
  477. D3 World Map with local image tiles
  478. D3 World Map with Smooth Mouse Zooming
  479. D3 World Map with Zoom, ToolTips, and Data Points
  480. D3 World Maps: Tooltips, Zooming, and Queue
  481. D3-Builder
  482. d3-comparator: sort arrays of objects by multiple dimensions
  483. D3-curvy/
  484. D3-plugins
  485. D3-tip on a bar chart
  486. D3-tree
  487. d3-tree-heatmap
  488. D3, Conceptually
  489. D3: Data-Driven Documents
  490. d3.bayarea( ) Celebrating 1024 members!
  491. d3.chart Choropleths
  492. d3.chart.tooltips
  493. d3.create + selection.adopt
  494. d3.geo.path + Canvas
  495. d3.geo.path and d3.behavior.zoom
  496. d3.geo.tile
  497. d3.geo.tile
  498. d3.geo.tiler
  499. D3.java script by Vienno – Keenjar
  500. D3.js and a little bit of ClosureScript
  501. D3.js and Excel
  502. D3.js and GWT proof-of-concept
  503. D3.js and Meteor to generate SVG
  504. D3.js and MongoDB
  505. D3.js and vega.js plots in the IP notebook
  506. D3.js and X-Requested-With Header
  507. D3.js crash course
  508. D3.js Docco documentation
  509. D3.js Documentation Generator for Dash and HTML
  510. D3.js experiments in the console
  511. d3.js for Attacker Reports
  512. D3.js force diagram from Excel
  513. D3.js force diagrams straight from Excel
  514. D3.js force diagrams with markers straight from Excel
  515. D3.js Geo fun
  516. D3.js graphs for RHQ
  517. D3.js Lessons: Create a Basic Column Chart
  518. D3.js Meta Tutorial
  519. D3.js nested data
  520. d3.js on Veengle
  521. D3.js Playground
  522. D3.js playground
  523. D3.js Premiership Season
  524. D3.js Presentation
  525. D3.js Slider Examples
  526. D3.js Sublime2 snippets
  527. D3.js tag at Frakturmedia
  528. d3.js tag at Monkeyologist
  529. D3.js tag on The JavaDude Weblog
  530. D3.js talk at Github
  531. D3.js talk from Iowa City Feb 2013 Iowa JS Meetup
  532. D3.js Tips and Tricks
  533. D3.js tree with drag nea logic
  534. D3.js tutorial on CodeAcademy
  535. d3.js video tutorial
  536. D3.js, elasticsearch, bordeaux open data
  537. D3.js,Data Visualisation in the Browser
  538. D3.js: Data-Driven Delight
  539. d3.micromaps
  540. d3.nest
  541. d3.phylogram
  542. d3.sticker plugin
  543. d3.time.format localization
  544. d3.time.scale nice
  545. d3.tsv
  546. d34raphael
  547. DAG as force graph
  548. Dagre: Directed graph rendering
  549. Daily data return rates for seismic networks in the EarthScope USArray
  550. Dance.js: D3 with Backbone and Data.js
  551. Dangle
  552. Dashifyr
  553. Dat achart plugin
  554. Data Science Venn Diagram
  555. Data Stories #22: NYT Graphics and D3
  556. Data Story
  557. Data Visualization at MinnPost
  558. Data Visualization Libraries Based on D3.JS
  559. Data Visualization Using D3.js
  560. Data visualization with D3.js and python
  561. Data Visualization with D3.js, slides and video
  562. Data-Driven Documents, Defined, Resources, Data Driven Journalism
  563. Datadog
  564. DataFart
  565. Dataflow programming with D3 and Blockly
  566. DataMaps: Interactive maps for data visualizations.
  567. Datameer Smart Analytics
  568. Datawrapper: An open source tool to create embeddable charts
  569. Date Ticks
  570. DavaViz for Everyone: Responsive Maps With D3
  571. David Foster Wallace’s ‘Infinite Jest’
  572. DC Code Browser
  573. DC government
  574. Dc.js
  575. De Maastricht au traité budgétaire : les oui et les non de 39 personnalités politiques
  576. De Maastricht au traité budgétaire : les oui et les non de 39 personnalités politiques
  577. Deadly Tornado Outbreak – April 25-28, 2011
  578. Decomposing an image from canvas to SVG
  579. Delaunay Force Mesh
  580. Delaunay Triangulation
  581. Delta-flora for IntelliJ analyze project source code history
  582. Density map of homicides in Monterrey
  583. Dependo: force directed graph of JavaScript dependencies
  584. Description: A little language for d3js
  585. Design process of The Electoral Map
  586. Designing a Reusable Line Chart in D3JS
  587. Detecting Duplicates in O(1) Space and O(n) Time
  588. Dex Motion Chart Demo
  589. DexCharts: A new reusable charting library for D3.js
  590. Diagram of Patients and Symptoms
  591. Dial examples
  592. Difference Chart
  593. Diffusion-limited aggregation
  594. Dimensional Changes in Wood
  595. Dimple Pong
  596. Dimple.js: An oo API for business analytics powered by d3.
  597. Direct Flights with Connections
  598. Directed Graph Editor
  599. Directly render and serve d3 visualizations from a nodejs server.
  600. Disc
  601. Dispatching Events
  602. Dissecting a Trailer: The Parts of the Film That Make the Cut
  603. Distances from North Korea
  604. DOM-to-Canvas using D3
  605. Donut Chart
  606. Donut Multiples
  607. Donut Transitions
  608. Dorling World Map
  609. Dot Append video tutorials
  610. Dot Enter video tutorials
  611. Dot enter( ) stage left
  612. Dot plot with jittering
  613. Dots
  614. Double Cordiform
  615. Downton Ipsum ~ A Downton Abbey-inspired lorem ipsum text generator
  616. Drag + Zoom
  617. Drag and Drop Container Divs
  618. Drag and Drop SVG Geography Game with D3.js
  619. Drag and resize a D3.js chart with JqueryUI
  620. Drag Multiples
  621. Drag rectangle
  622. Draggable Network
  623. Draggable Network II
  624. Draw tangent on a line on mouseover
  625. Drawing Chemical Structures with Force Layout
  626. Drawing Hexagon Mesh with contour using TopoJSON
  627. Driving from Thailand to the Netherlands
  628. Drop shadow example
  629. Drought and Deluge in the Lower 48
  630. Drought during Month
  631. Drought Extends Crops Wither
  632. DRY Bar Chart
  633. Dual scale line chart
  634. DViz: a declarative data visualization library
  635. Dymo
  636. Dynamic Distance Cartogram for ORBIS
  637. Dynamic Hexbin
  638. Dynamic Simplification
  639. Dynamic Simplification II
  640. Dynamic Simplification III
  641. Dynamic Simplification IV
  642. Dynamic Visualization LEGO
  643. Dynamic-Graphs: charting lib for real-time data
  644. Dynamics of Swedish politics
  645. Earthquakes
  646. Easy infographics with D3.js
  647. Eckert I Projection
  648. Eckert II Projection
  649. Eckert III Projection
  650. Eckert IV Projection
  651. Eckert V Projection
  652. Eckert VI Projection
  653. Eckert–Greifendorff
  654. eCommerce API Wheel for eBay
  655. Economic performance of the Amsterdam Metro Area by sector and year
  656. Edge labels
  657. Eisenlohr Projection
  658. El Patrón de los Números Primos
  659. Elastic collisions
  660. Elbow Dendrogram
  661. Election 2012 Social Dashboard (interactive Twitter visualization)
  662. Electro 2013: The magnetic force between political candidates and objectives
  663. Elezioni 2013 – I risultati del voto per la Camera dei deputati
  664. Embed D3.js Animations in Slidify
  665. Embedly Blog, Visualizing discussions on Reddit with a D3 network and Embedly
  666. Ember Table
  667. Ember Timetree
  668. English Football Tickets: Value For Money
  669. Enumerating vertex induced connected subgraphs
  670. Epicyclic Gearing
  671. Epicyclical Gears
  672. EPSG:2163 Coordinates
  673. Equidistant Conic Projection
  674. Equirectangular (Plate Carrée)
  675. Error bars reusable component
  676. Eurozone crisis: more than debt
  677. Events in the Game of Thrones
  678. Every ColorBrewer Scale
  679. Every known drone strike and victim in Pakistan
  680. Example of interactive MDS visualisation
  681. Example of map with routes in Gunma
  682. Exit, Update, Enter
  683. Exit, Update, Enter II
  684. Exoplanets
  685. Exoplanets: an interactive version of XKCD 1071
  686. Expandable Menu
  687. Exploration of the Google PageRank Algorithm
  688. Explore Analytics: cloud-based data analytics and visualization
  689. Exploring d3.js with data from my runs to plot my heart rate
  690. Exploring Health Care Cost and Quality
  691. Exploring Reusability with D3.js
  692. Explosions
  693. Export to SVG/PNG/PDF server-side using Perl
  694. Extending the D3 Zoomable Sunburst with Labels
  695. Extent Ticks
  696. External SVG
  697. Extradition Treaties
  698. Eyedropper
  699. Eyedropper
  700. F1 Championship Points as a d3.js Powered Sankey Diagram
  701. Facebook IPO
  702. Facebook Mutual Friends
  703. Facebook Open Graph with Angular
  704. Faces
  705. Factorisation Diagrams
  706. Fahey
  707. Fahrradunfälle in Deutschland
  708. Fancy Markers
  709. Fancy Markers (No Gradient)
  710. Farid Rener CV
  711. Fast Multidimensional Filtering for Coordinated Views
  712. Fast Pointing
  713. Faster pan/zoom on big TopoJSON of Iceland
  714. Faux-3D Arcs
  715. Faux-3d Shaded Globe
  716. Feltronifier
  717. Fibonacci Numbers
  718. Fill-Rule Evenodd
  719. Filling Geometric Objects
  720. Financial visualization of top tech companies
  721. Fineo: an app based on Sankey diagrams
  722. Finite State Stream
  723. First steps in data visualisation using d3.js
  724. Fisheye Distortion
  725. Fisheye Grid
  726. Fixed-width Histogram Irwin-Hall distribution
  727. Fixed-width Histogram of Durations log-normal distribution
  728. Flat-Polar Parabolic
  729. Flat-Polar Quartic
  730. Flat-Polar Sinusoidal
  731. Floating Landmasses
  732. Floor Plan Map
  733. Flow – Straight, Arrows
  734. Flows of refugees between the world countries in 2008
  735. Focus+Context via Brushing
  736. Focusable Maps
  737. Football passes
  738. For Example
  739. For Protovis Users
  740. Force Directed States of America
  741. Force Editor + Pan/Zoom
  742. Force layout big
  743. Force Layout from Adjacency List
  744. Force Layout from CSV
  745. Force Layout from List
  746. Force layout graph with colour-coded node neighbours
  747. Force Layout Multiples (Independent)
  748. Force layout on composite objects
  749. Force Layout with Canvas
  750. Force Layout with Mouseover Labels
  751. Force Layout with Tooltips
  752. Force-based label placement
  753. Force-Based Label Placement
  754. Force-Directed Graph
  755. Force-Directed Graph
  756. Force-Directed Graph with Mouseover
  757. Force-Directed Graphs: Playing around with D3.js
  758. Force-Directed Layout from XML
  759. Force-directed layout with custom Forces
  760. Force-directed layout with drag and drop
  761. Force-directed layout with from Matrix Market format
  762. Force-directed layout with images and Labels
  763. Force-directed layout with multi Foci and Convex Hulls
  764. Force-directed layout with multiple Foci
  765. Force-directed layout with symbols
  766. Force-directed lollipop chart
  767. Force-Directed Parallel Coordinates
  768. Force-directed Splitting
  769. Force-Directed States
  770. Force-Directed SVG Icons
  771. Force-Directed Tree
  772. ForceEdgeBundling on US airline routes
  773. ForceLayoutEditor
  774. Forecast of Mexican 2012 presidential election
  775. Foreign aid, corruption and internet use
  776. Formula 1 Lap Chart
  777. Forrst, Visualizing US Foreign Aid with D3.js
  778. Foucaut’s Stereographic Equivalent
  779. Four Ways to Slice Obama’s 2013 Budget Proposal
  780. France – Data Explorer
  781. From Random Polygon to Ellipse
  782. From tree to cluster and radial projection
  783. Fuzzy Counties
  784. Fuzzy Link-Bot
  785. G3plot-1
  786. Gall Stereographic
  787. Gall–Peters
  788. Game of life
  789. GAMEPREZ Developer Kit
  790. Gantt Chart plugin
  791. Gantt Chart, example 3
  792. Gauge
  793. Gaussian Primes
  794. General Update Pattern I
  795. General Update Pattern II
  796. General Update Pattern III
  797. GeoDash
  798. Geodesic Grid
  799. Geodesic Rainbow
  800. Geographic Bounding Boxes
  801. Geographic Bounding Boxes
  802. Geographic Clipping
  803. GeoJOIN
  804. GeoJSON Transforms
  805. Geometry daily #129
  806. GeoMobilité – Application cartographique de la mobilité
  807. Get dirty with data using d3.js
  808. getBBox
  809. Getting Started with D3
  810. ggplot2 + d3 = r2d3
  811. ggplot2-Style Axis
  812. Gilbert’s Two-World Perspective
  813. Ginzburg IV
  814. Ginzburg IX
  815. Ginzburg V
  816. Ginzburg VI
  817. Ginzburg VIII
  818. Giraffe : A Graphite Dashboard with a long neck
  819. Girko’s Circular Law
  820. Girls Lead in Science Exam, but Not in the United States
  821. Gist API Latency
  822. Git-backed Node Blob Server
  823. GitHub visualization
  824. Github Visualizer
  825. gka’s blocks
  826. Glimpse.js: a new chart library on top of D3.js
  827. Global Life Expectancy
  828. Global Oil Production & Consumption since 1965
  829. Global Surface Temperature: 500 … 2009
  830. Globe rendered with WebGL and Three.js.
  831. Glucose heatmap over hours of day
  832. Glucose with panning
  833. Gnomonic
  834. Gnomonic Butterfly
  835. Goode Homolosine
  836. Google calendar like display
  837. Google Flu Trends
  838. Google Hurdles
  839. Google Maps + D3
  840. GOV.UK’s web traffic
  841. Gradient Along Stroke
  842. Gradient Bump
  843. Gradient Encoding
  844. Graph diagram of gene ontology
  845. Graph of my current interests and aspirations
  846. Graph Rollup
  847. Graphicbaseball: 2012 Batters
  848. Graphicbaseball: 2012 Pitchers
  849. Graphs
  850. Gravity balls
  851. Gray Earth
  852. Great Arc
  853. Great Circle Arc Intersections
  854. Great-Circle Distance
  855. Grid layout
  856. Gringorten Equal-Area
  857. Grouped Bar Chart
  858. Grouped Bar Chart
  859. GSA-Leased Opportunity Dashboard
  860. Gun homicides in America 2010
  861. Gun ownership versus gun violence
  862. Guts of EnergyPlus Source Code Visualized with d3.js
  863. Guyou Projection
  864. Hacker News statistics using PhantomJS
  865. Hacker Notes, d3 tag
  866. Hamiltonian Graph
  867. Hammer
  868. Hammer Retroazimuthal
  869. Hamming Quilt
  870. Haphazard collection of examples for a book
  871. HarvardX Research: worldwide student enrollment
  872. Hashing Points
  873. Hata’s tree-like set (with slider)
  874. Hatnote Listen to Wikipedia
  875. HEALPix
  876. Health and Wealth of Nations
  877. Healthvis R package – one line D3 graphics with R
  878. Heatmap
  879. Heatmap and 2D Histogram
  880. Heatmap of gene expression with hierarchical clustering
  881. Heatmap with Canvas
  882. Heavily annotated scatterplot
  883. Hedonometer: Daily Happiness Averages for Twitter
  884. Heightmap
  885. Hell is Other People: Scott Made This
  886. Hello WebGL
  887. Hello WebGL II
  888. Hello WebGL III
  889. Hello WebGL IV
  890. herrstucki on bl.ocks
  891. Hexagonal Binning
  892. Hexagonal Binning (Area)
  893. Hexagonal cartogram of Asian economies and potential shifts in manufacturing
  894. Hexagonal Grids
  895. Hexbin Edits on OpenStreetMap
  896. Hierarchical Bar Chart
  897. Hierarchical Bars
  898. Hierarchical classification
  899. Hierarchical Edge Bundling
  900. Hierarchical Edge Bundling
  901. Hierarchical Edge Bundling
  902. Hierarchical Edge Bundling
  903. Hierarchical Edge Bundling
  904. Hilbert Curve
  905. Hilbert Stocks
  906. Hilbert Stocks
  907. Hilbert Tiles
  908. Hill Eucyclic
  909. Histogram
  910. Histogram (Redirect)
  911. Histogram Chart
  912. Histogram Generator with D3
  913. Historical UK Maps
  914. History of the WWE Title
  915. Hive Plot
  916. Hive Plot (Areas)
  917. Hive Plot (Links)
  918. Hive Plot for Student Systems
  919. Hobo–Dyer
  920. Home energy consumption
  921. Horizon Chart
  922. Horse Exports/Imports in the EU
  923. Hotspots
  924. House Hunting All Day, Every Day – Trulia Insights
  925. How does Quartz create visualizations so quickly on breaking news?
  926. How educated are world leaders?
  927. How Obama Won Re-election
  928. How selectAll Works
  929. How Selections Work
  930. How the Chicago Public School District Compares
  931. How to Animate Transitions Between Multiple Charts
  932. How to convert to D3js JSON format
  933. How to design a dashboard using d3.js
  934. How to Embed Open Spending Visualizations
  935. How to get a significant correlation value by moving just one point around
  936. How to Make an Interactive Network Visualization
  937. How to Make Choropleth Maps in D3
  938. How to visualise funnel data from Google Analytics
  939. HTML Overlay with pageX / pageY
  940. HTML5 input type nodes
  941. http://nowherenearithaca.blogspot.com/2012/06/annotating-d3-example-with-docco.html
  942. Hypercube Edges in Orthogonal Projection
  943. Hypercube with Parallel Coordinates
  944. Iceland Topography
  945. Icelandic population pyramid
  946. Icequake
  947. Icicle
  948. Icosahedron
  949. Icosahedron
  950. iD Architecture: Map Rendering and Other UI
  951. iD: a friendly editor for OpenStreetMap
  952. IDH des communes du Nord-Pas de Calais.
  953. iLearning – D3.js Basic for iPad
  954. Image Markers
  955. Image Processing
  956. Image tiles with float: left
  957. Immersion: a people-centric view of your email life
  958. Income diff. between male and female dominated occupations 1
  959. Income diff. between male and female dominated occupations 2
  960. Increased Border Enforcement, With Varying Results
  961. Increased Border Enforcement, With Varying Results – Interactive Graphic – NYTimes.com
  962. Indented tree layout
  963. Indian Village Components
  964. Indo-Europeans
  965. Inequality and NY Subway
  966. Inequality in America
  967. Infinite Plasma Fractal
  968. Infinite Queue
  969. Infro
  970. Infro.js: Filtering Tabular Data
  971. Infro.js: Nutrient Dataset
  972. Inkscape-s3-server
  973. Input Value Interpolation
  974. Inspired by geometry daily
  975. Instant interactive visualization with d3 + ggplot2
  976. Integrating D3 with a CouchDB database 1
  977. Integrating D3 with a CouchDB database 2
  978. Integrating D3 with a CouchDB database 3
  979. Integrating D3 with a CouchDB database 4
  980. Interactive azimuthal projection simulating a 3D earth with stars
  981. Interactive Data Visualization for the Web
  982. Interactive Data Visualization for the Web: read online
  983. Interactive Gnomonic
  984. Interactive Line Graph
  985. Interactive Line Graph
  986. Interactive MDS visualisation
  987. Interactive Orthographic
  988. Interactive Publication History
  989. Interactive Stereographic
  990. Interactive Streamgraph
  991. Interactive visual breakpoint detection on SegAnnDB
  992. Interpolating with d3.tween
  993. Interrupted Boggs Eumorphic
  994. Interrupted Goode Homolosine
  995. Interrupted Goode Raster
  996. Interrupted Mollweide
  997. Interrupted Sinu-Mollweide
  998. Interrupted Sinusoidal
  999. Interrupted Transverse Mercator
  1000. Intro to d3
  1001. Introducing Contributions on GitHub
  1002. Introduction
  1003. Introduction to D3
  1004. Introduction to D3
  1005. Introduction to D3.js
  1006. Introduction to d3.js and data-driven visualizations
  1007. Introduction to Network Analysis and Representation
  1008. IPython-Notebook with D3.js
  1009. Irish Horse Breeding Data
  1010. IRL Trnspttr
  1011. Irregular Histogram (Lollipop)
  1012. Is Barack Obama the President? (Balloon charts)
  1013. iTunes Music Library Artist/Genre Graph
  1014. Jan Willem Tulp portfolio
  1015. Japanese Government Bonds Rates
  1016. Japanese Government Bonds Yield Curve
  1017. Javascript and MapReduce
  1018. Javascript Idioms in D3.js
  1019. Jerome Cukier » Selections in d3 – the long story
  1020. Jérôme Cukier portfolio
  1021. JezzBall
  1022. Jim Vallandingham portfolio
  1023. Job Flow
  1024. Jobs by state
  1025. johan’s blocks
  1026. JSNetworkX: A port of the NetworkX graph lib to JS
  1027. Jsplotlib
  1028. Junction Finding
  1029. Just Enough SVG
  1030. K-means
  1031. Kaleidoscope
  1032. Kaprekar Routine
  1033. Kavrayskiy VII Projection
  1034. Kentucky Population Density
  1035. Kentucky Population Density
  1036. Kepler’s Tally of Planets
  1037. Kernel Density Estimation
  1038. Kind of 3D with D3
  1039. Kindred Britain
  1040. Know Huddle – Correlation
  1041. Koalas to the Max
  1042. L*a*b* and HCL color spaces
  1043. La Nuit Blanche
  1044. Labeled points
  1045. Labeling in OpenStreetMap’s iD Editor
  1046. Lagrange Projection
  1047. Lambert Azimuthal Equal-Area
  1048. Lambert Conformal Conic Projection
  1049. Language Network
  1050. Lantern
  1051. Larrivée Projection
  1052. Laskowski Tri-Optimal
  1053. Last Chart! – See the Music
  1054. Latest Earthquakes
  1055. Lazy Scale Domain
  1056. LDA Topic Arcs: The DaVinci Code
  1057. LDAviz
  1058. Leaflet + D3js: Hexbin
  1059. Leaflet Template
  1060. leaflet.d3
  1061. Leap Motion D3.js Demo
  1062. Leap motion map tests
  1063. Learn how to make Data Visualizations with D3.js
  1064. Learning D3, Speaker Deck
  1065. Left-Aligned Ticks
  1066. Left-Aligned Ticks
  1067. Legend
  1068. Leibniz Spiral
  1069. Lepracursor
  1070. Les Misérables Co-occurrence Matrix
  1071. Let’s Make a Map
  1072. Letter Frequency
  1073. Liberal Revolution of 1820 in Lisbon
  1074. Library for visualizing Go games
  1075. License Usage Dashboard
  1076. Life expectancy 1960-2009 choropleth
  1077. Life expectancy 1960-2009 panel chart
  1078. Life expectancy 1960-2009 slopegraph
  1079. Limaçon as envolve of circles around a circle
  1080. Line Chart
  1081. Line Chart with tooltips
  1082. Line chart with zoom, pan, and axis rescale
  1083. Line Interpolation
  1084. Line Intersection Brushing
  1085. Line Simplification
  1086. Line Tension
  1087. Line Transition
  1088. Line Transition (Broken)
  1089. Linear Gradient
  1090. Linear Programming
  1091. Lines with Rounded Turns
  1092. Linked Jazz network graph
  1093. List of all the Gists from Mike Bostock
  1094. Littrow
  1095. Live coding based on Bret Victor’s Inventing on Principle talk
  1096. Loading a thumbnail into Gist for bl.ocks.org d3 graphs
  1097. Loading Adobe Photoshop ASE color palette
  1098. Lobster Catch Analyst
  1099. Log Axis
  1100. Log Axis with Zero
  1101. London D3.js Meetup #2
  1102. London d3.js Meetup #5
  1103. London d3.js User Group
  1104. London Olympics Perceptions – Donuts to Chord Diagram Transition
  1105. Long Scroll
  1106. Lorenz System
  1107. Lorenz Toy
  1108. Loupe
  1109. Loximuthal
  1110. Loxodrome
  1111. Made with D3.js
  1112. Major League Baseball Home Runs 1995-2010
  1113. Make a bubble chart using d3.js demo
  1114. Making maps with d3.js
  1115. Mandel for Controller Bulldog Budget
  1116. Manipulating data like a boss with d3
  1117. Manual Axis Interpolation
  1118. Map Direct Flights with D3
  1119. Map from GeoJSON data with zoom/pan
  1120. Map of all M2.5+ earthquakes of the last 24h.
  1121. Map of COMIPEMS Scores
  1122. Map of Germany using D3.js and Simplify.js
  1123. Map of Italiens
  1124. Map of pro sports teams by territory
  1125. Map Projection Distortions
  1126. Map Projection Transitions
  1127. Map with faux-3D globe
  1128. Map Zooming
  1129. Map Zooming II
  1130. Map Zooming III
  1131. Mapbox: add vector features to your map with D3
  1132. Mapping Hate Crimes in Iran
  1133. Mapping the Melting Pot
  1134. Mapping Tours with D3 and SeatGeek
  1135. Maps and sound
  1136. Maps Garage: Exploring Map Data with Crossfilter
  1137. Marey’s Trains
  1138. Marey’s Trains II
  1139. Margin Convention
  1140. Marimekko Chart
  1141. Marimekko, Mekko or Mosaic Chart
  1142. Markov processes
  1143. Marmoset chimerism dotplot
  1144. Masking with external svg elements
  1145. MathBox animation vs d3.js enter/exit
  1146. MathJax label
  1147. Matrix Layout
  1148. Maurer No. 73
  1149. Men’s 100m Olympic champions
  1150. Mercator
  1151. Mercator Projection
  1152. Merge Sort
  1153. Merging States
  1154. Merging States II
  1155. Meshu turns your places into beautiful objects.
  1156. Messing around wih D3.js and hierarchical data
  1157. Metaevil
  1158. meteor-deployments
  1159. Metrica
  1160. Metropolitan Unemployment
  1161. Mexican Presidential Election 2012
  1162. mgrafeeds
  1163. Mike Bostock portfolio
  1164. Milky Way
  1165. Miller Projection
  1166. Minecraft Overviewer
  1167. Minimalist example of reusable D3.js plugin
  1168. Miniviz
  1169. Minute: record of all of my keystrokes
  1170. Mirrored Easing
  1171. Misc. Examples
  1172. Miscellaneous utilities for D3.js
  1173. Mitchell’s Best-Candidate
  1174. Mitchell’s Best-Candidate 1
  1175. Mitchell’s Best-Candidate 2
  1176. Mitchell’s Best-Candidate 3
  1177. MLB Hall of Fame Voting Trajectories
  1178. MN Giving Day 2012
  1179. Mobile Patent Lawsuits
  1180. Mobile Patent Suits
  1181. Modal Logic Playground
  1182. Modifying a Force Layout
  1183. Moiré Patterns
  1184. Molecule
  1185. Mollweide
  1186. Mollweide Hemispheres
  1187. Mollweide Watercolour
  1188. Monday-based Calendar
  1189. Money Wins Elections
  1190. Monotone Interpolation Bug
  1191. Monotone Line Interpolation
  1192. Monte Carlo simulation of bifurcations in the logistic map
  1193. Month Axis
  1194. More Data Visualization Libraries Based on D3.JS
  1195. More Introduction to D3
  1196. Morley’s trisector theorem
  1197. Morphogenesis Simulation
  1198. Most simple d3.js stack bar chart from matrix
  1199. Mouseenter
  1200. mousewheel-zoom + click-to-center
  1201. Movie color analysis with XBMC, Boblight, Java and D3.js
  1202. Moving Histogram
  1203. Moving Squares
  1204. Mower game
  1205. Muerte Materna en Argentina
  1206. Multi-Foci Force Layout
  1207. Multi-Foci Force Layout
  1208. Multi-Line Voronoi
  1209. Multi-Series Line Chart
  1210. Multi-series Line Chart with Long Format Data (columns instead of rows)
  1211. Multi-Series Line to Stacked Area Chart Transition
  1212. Multi-Value Maps
  1213. Multiline chart with brushing and mouseover
  1214. Multiline with zoomooz
  1215. Multiple Area charts and a brush tool
  1216. Multiple area charts with d3.js
  1217. Multiple Leap Motions over WebSockets – YouTube
  1218. Multiple Lines grid
  1219. Multiple time-series with object constancy
  1220. Multiple visualization from the Société Typographique de Neuchâtel
  1221. My Force Directed Graph
  1222. Natural Earth
  1223. Natural Log Scale
  1224. NCAA 2012 March Madness Power Rankings
  1225. Negative stacked bar chart
  1226. Nell–Hammer Projection
  1227. Nested Selections
  1228. Network of World Merchandise Trade
  1229. Neuroscience and brain stimulation publication counts
  1230. New Jersey Blocks
  1231. New Jersey State Plane
  1232. New York Block Groups
  1233. New Zealand Earthquakes Pattern of Life
  1234. Newton’s balls
  1235. Newton’s cradle
  1236. NFL salaries by team and position
  1237. Nick Jaffe’s Polymap
  1238. No Antimeridian Cutting
  1239. Nodal is a fun way to view your GitHub network graph
  1240. Node + MySQL + JSON
  1241. Node-Link Tree
  1242. Non-Computed Style Tween
  1243. Non-contiguous Cartogram
  1244. Non-Contiguous Cartogram
  1245. Non-contiguous cartogram of seats allocated in the canadian House of Commons
  1246. Noob on JSON : Data for d3.js documents
  1247. Normalized Stacked Bar Chart
  1248. Number of heat stroke
  1249. Number of unique rectangle-free 4-colourings for an nxm grid
  1250. Nutrient Database Explorer
  1251. NVD3
  1252. NVD3 for BI
  1253. nvd3.py
  1254. NY Times Strikeouts Graphic, recreated using rCharts and PolychartJS
  1255. NYC Bike Share
  1256. NYC D3.js
  1257. Obesity map
  1258. Object Constancy
  1259. Object constancy with multiple sets of time-series
  1260. Ocean
  1261. OECD Health Government Spending and Obesity Rates (nvd3)
  1262. offsetX / offsetY
  1263. offsetX / offsetY
  1264. Ohio State Plane (N)
  1265. Old Visualizations Made New Again
  1266. Oliver Rolle / Logarithmic Line Chart
  1267. Olympic Medal Rivalry
  1268. OMG Particles!
  1269. One Path for All Links
  1270. One System, Every Kepler Planet
  1271. One-Way Markers
  1272. Online GeoJSON and TopoJSON renderer
  1273. Open Knowledge Festival Hashtag Graph Visualization
  1274. OpenBudget
  1275. OPHZ Zooming
  1276. ORBIS v2
  1277. Order
  1278. Ordinal Axis
  1279. Ordinal Brushing
  1280. Ordinal Tick Filtering
  1281. Ordinal Tick Filtering
  1282. Orthographic
  1283. Orthographic Clipping
  1284. Orthographic Grid
  1285. Orthographic Projection
  1286. Orthographic Shading
  1287. Orthographic to Equirectangular
  1288. Over the Decades How States Have Shifted
  1289. Pack Test
  1290. Pack Test
  1291. Pair Contribution and Selection
  1292. Pale Dawn
  1293. Pan+Zoom
  1294. Papa
  1295. Parallel Coordinates
  1296. Parallel Coordinates
  1297. Parallel Coordinates
  1298. Parallel Coordinates
  1299. Parallel Coordinates
  1300. Parallel coordinates with fisheye distortion
  1301. Parallel Lines and Football using Dex and D3.js
  1302. Parallel Sets
  1303. Paris Transilien
  1304. Partition Layout (Zoomable Icicle)
  1305. Path and Transform Transitions
  1306. Path from function 2
  1307. Path from function 3
  1308. Path Tween
  1309. path_from_function_2
  1310. Path_from_function_2
  1311. Pedigree Tree
  1312. Peirce Quincuncial
  1313. Peirce Quincuncial
  1314. Percent women in city councils
  1315. Percentile line chart of gene expression microarrays
  1316. Percolation model
  1317. Periodic table
  1318. Periodic table
  1319. Perlin circles
  1320. Perlin Ink
  1321. Perlin Landscape
  1322. Perlin Worms
  1323. Peter Cook Web Developer
  1324. Ph.D. Thesis Progress
  1325. PhD in the Bundestag
  1326. Phylogenetic Tree of Life
  1327. Pictograms
  1328. Pie Chart
  1329. Pie Chart Update I
  1330. Pie Chart Update II
  1331. Pie chart update III
  1332. Pie chart update IV
  1333. Pie Chart Update, III
  1334. Pie Chart Update, IV
  1335. Pie Chart Update, V
  1336. Pie Chart Updating with Text
  1337. Pie Multiples
  1338. Pie Multiples with Nesting
  1339. Pimp my Tribe
  1340. Pixymaps (Dragging)
  1341. Pixymaps (Scrolling)
  1342. Placename patterns
  1343. Places in the Game of Thrones
  1344. Plan du métro interactif
  1345. Plan interactif du métro
  1346. Planarity
  1347. Planck-cl
  1348. Plant Hardiness Zones
  1349. Plants
  1350. Plot.io (swallowed by Platfora)
  1351. Plotly: create graphics, analyze with Python, annotate and share
  1352. Plotsk: A python/coffeescript/d3.js-based library for plotting data in a web browser
  1353. Plotting library for python based on D3.js
  1354. Población de Argentina, Experimento D3.js
  1355. Poincaré Disc
  1356. Point-Along-Path Interpolation
  1357. Point-Along-Path Interpolation
  1358. Polar Azimuthal Equal-area
  1359. Polar Plot
  1360. PolarClock
  1361. Polls on the 2012 U.S. Election
  1362. Polybrush.js
  1363. Polychart: A browser-based platform for exploring data and creating charts
  1364. Polyconic Projection
  1365. Polygonal Lasso Selection
  1366. Polylinear Time Scale
  1367. Polymaps / Andrew Mager
  1368. Polymaps / Andrew Mager
  1369. Polymaps / Andrew Mager
  1370. Polymaps / Andrew Mager
  1371. Polymaps / Andrew Mager
  1372. Polymaps / CSS Hover
  1373. Polymaps / Heatmap
  1374. Polymaps / JSONP Queue
  1375. Polymaps / Procedural Perlin
  1376. Polymaps + D3
  1377. Polymaps + D3 Part 2
  1378. Polymaps bad projection example
  1379. polymaps.appspot.com
  1380. Poor Anti-Aliasing in SVG #1
  1381. Poor Anti-Aliasing in SVG #2
  1382. Population Choropleth
  1383. Population of the cantons and of the 10 largest cities of Switzerland
  1384. Population Pyramid
  1385. Portfolio
  1386. Portrait in Chinese ascii: Chris Viau
  1387. Portrait in Chinese ascii: EJFox
  1388. Predsjednik Republike Srpske
  1389. Presentation on Visualizing Data in D3.js and mapping tools at NetTuesday
  1390. Price Changes: animated dimple.js chart
  1391. Processing Fixed-Width Data
  1392. Profils des cyclistes
  1393. Programmatic Pan+Zoom
  1394. Progress Events
  1395. Project Groups – IS428: Visual Analytics for Business Intelligence
  1396. Project to Bounding Box
  1397. Projected Choropleth
  1398. Projected TopoJSON
  1399. Projection Contexts
  1400. Projection Transitions
  1401. Proof of Pythagoras’s Theorem
  1402. Proportion of Foreign Born in Large Cities: 1900
  1403. Prose-only Blocks
  1404. Prototype Chart Template (WIP)
  1405. Prototype: d3.geo
  1406. Protovis / David Karr
  1407. Protovis / Nelson Minar
  1408. Protovis / Quomo Pete
  1409. Pseudo-Demers Cartogram
  1410. Pseudo-Dorling Cartogram
  1411. Psi man
  1412. Public Interest Evaluation Project
  1413. Pushing D3.js commands to the browser from iPython
  1414. Pyramid charts: demographic transition in the US
  1415. Python-NVD3
  1416. Q-Q Plots
  1417. Quadratic Koch Island Simplification
  1418. Quadtree
  1419. Quadtree Madness Round 2
  1420. Quartic Authalic
  1421. Quartile plots
  1422. Quartile plots with outliers
  1423. Queue.js Demo
  1424. Quick Charting with D3js
  1425. Quick scatterplot tutorial for d3.js
  1426. Quicksort
  1427. Radar chart
  1428. Radial Arc Diagram
  1429. Rainbow Colors
  1430. Rainbow showing how to use mask and clipPath
  1431. Rainbow Worm
  1432. Rainbows are Harmful
  1433. Raindrops
  1434. Rainflow
  1435. Rakie & Jake
  1436. Random Arboretum
  1437. Random Points on a Sphere
  1438. Random Walk in Configuration Space
  1439. Range Transition
  1440. Raster & Vector Zoom
  1441. Raster Reprojection
  1442. Rbspd3
  1443. rCharts Custom, Cancer, Fantasy Football, and Three Level Mixed Effects Logistic Regression
  1444. rCharts: R interface for NVD3, Polycharts, MorrisJs and soon Rickshaw, DexCharts, Dc.js
  1445. Reactive Charts with D3.js and Reactive.js
  1446. Read File or HTTP
  1447. Real time sales
  1448. Real-time sentiment analysis of Obama 2012 victory speech
  1449. Really cool wordpress theme
  1450. Realtime Visualizations w/ D3 and Backbone
  1451. Realtime webserver stats
  1452. Recettear Item Data
  1453. Rectangular Polyconic
  1454. Rectilinear Grid
  1455. Reddit Insight
  1456. Rega: Experimental Ruby Vega generator
  1457. Reingold–Tilford Tree
  1458. Reingold–Tilford Tree (Redirect)
  1459. Relations of football players participating in Euro 2012
  1460. Remittance flows
  1461. Remittances
  1462. Render Geographic Information in 3D With Three.js and D3.js
  1463. Render sever-side using Phantomjs
  1464. Rendering Tests
  1465. Reorderable Stacked Bar Chart
  1466. Replicating a New York Times d3.js Chart with Tableau
  1467. Reports for Simple
  1468. Reprojected Raster Tiles
  1469. Republic of Ireland – Data Explorer
  1470. Resampling Comparison
  1471. Resampling Comparison
  1472. Resizable Force Layout
  1473. Resizable Markers
  1474. Responsive D3
  1475. Responsive SVG resizing without re-rendering
  1476. Responsive TopoJSON Sizing
  1477. Retrofit Analysis Report
  1478. Reusable D3 With The Queen, Prince Charles, a Corgi and Pie Charts
  1479. Reusable D3.js, Part 1: Using AttrTween, Transitions and MV*
  1480. Reusable D3.js, Part 2: Using AttrTween, Transitions and MV*
  1481. Reusable Interdependent Interactive Histograms
  1482. Reusable Pie Charts
  1483. Reusable text rotation
  1484. Reveal animation on a tree with a clip path
  1485. Reverse Geocoding Plug-in using an offline canvas
  1486. Rhodonea Curve
  1487. RHQ – Project Documentation Editor
  1488. Rickshaw: JavaScript toolkit for creating interactive real-time graphs
  1489. Ring Cutting
  1490. Ring Extraction
  1491. Rivers of the U.S.A.
  1492. Robinson Projection
  1493. Romanian parliamentarian bubble chart. In Romanian
  1494. Rotated Axis Labels
  1495. Rotating Cluster Layout
  1496. Rotating Equirectangular
  1497. Rotating Icosahedron
  1498. Rotating Orthographic
  1499. Rotating Orthographic
  1500. Rotating Orthographic
  1501. Rotating Transverse
  1502. Rotating Transverse Mercator
  1503. Rotating Transverse Mercator
  1504. Rotating Voronoi
  1505. Rotating Winkel Tripel
  1506. Rounded Rectangle
  1507. Rounded Rectangles
  1508. Route Probability Exploration with Parallel Coordinates
  1509. Running Away Balloons – simple game
  1510. sammyt/see
  1511. San Francisco Contours
  1512. San Francisco Movies (Beta Version)
  1513. Sankey Diagram
  1514. Sankey diagram with cycles
  1515. Sankey diagram with horizontal and vertical node movement
  1516. Sankey Diagram with Overlap
  1517. Sankey diagrams from Excel
  1518. Sankey Diagrams of Local Economic Flows
  1519. Sankey from Excel, inherited cell colors for links
  1520. Sankey Interpolation
  1521. Sankey your Google Spreadsheet Data
  1522. saraquigley bl.ocks
  1524. SAS and D3.js: a macro to draw scatter plot
  1525. SAS and D3.js: map to display US cities murder rates
  1526. Satellite Projection
  1527. Satellite Projection Test
  1528. Satellite Raster
  1529. Save SVG as PNG
  1530. Scale-Dependent Sampling
  1531. Scatterize
  1532. Scatterplot
  1533. Scatterplot and Heatmap
  1534. Scatterplot for K-Means clustering visualization
  1535. Scatterplot Matrix
  1536. Scatterplot Matrix
  1537. Scatterplot Matrix Brushing
  1538. Scatterplot with Multiple Series
  1539. Scatterplot with Shapes
  1540. Schelling’s segregation model
  1541. School Absenteism
  1542. SCION simulation environment
  1543. Scott Murray tutorials in Japanese
  1544. See-Through Globe
  1545. See-Through Globe II
  1546. Segmented Lines
  1547. Selectable elements
  1548. Selecties EK 2012
  1549. selection.order
  1550. Self-Immolation In Tibet
  1551. Self-Organising Maps
  1552. Sensitivity/Specificity Plot
  1553. Sequential Tiles
  1554. Series of D3.js video tutorials
  1555. Set Partitions
  1556. Seven years of SSLC in Karnataka
  1557. Shape of My Library — Comics
  1558. Shape Tweening
  1559. Shared Data
  1560. SHEETSEE.JS: Fill up Websites with Stuff from Google Spreasheet
  1561. Shiboronoi
  1562. Shiny and R adaptation of Mike Bostock’s d3 Brushable Scatterplot
  1563. Shiny R and D3.js
  1564. Simple Bar Graph in Angular Directive with d3.js and Prototype.js
  1565. Simple D3.js Bar Chart Webcast
  1566. Simple Dashboard Example
  1567. Simple example using Vega, D3, and Jstat
  1568. Simple HTML data tables
  1569. Simple Junctions
  1570. Simple Radar Chart
  1571. Simple Reusable Bar Chart
  1572. Simple scatterplot
  1573. Simple table
  1574. Simple-map-d3
  1575. Simplex Noise Code 39 Barcode
  1576. Simplex Noise Dots
  1577. Simplifying and cleaning Shapefiles.
  1578. Sinu-Mollweide
  1579. Sinusoidal
  1580. Skillpedia: an open encyclopedia for skills
  1581. Sky Open Source, Behavioral Database
  1582. Skybox
  1583. SKYFALL. Meteorite falls map.
  1584. Slides and live code from the GAFFTA d3 intro workshop
  1585. Slippy map + extent indicator
  1586. SlopeGraph
  1587. Slopegraph lines in SVG and Canvas
  1588. Slopegraphs
  1589. Small Multiples
  1590. Small Multiples with Details on Demand
  1591. Smoke charts
  1592. Smooth Scrolling
  1593. Smooth Slider
  1594. SnakeViz: An In-Browser Python Profile Viewer
  1595. Snowden’s Route
  1596. Snowflake Simplification
  1597. Snowflakes
  1598. Snowflakes with D3
  1599. Social trust vs ease of doing business
  1600. Social web use in 2009
  1601. SOCR Violin Chart
  1602. Solar Terminator
  1603. SOM Animation
  1604. Sortable Bar Chart
  1605. Sortable Bar Chart
  1606. Sortable Table with Bars
  1607. Sorting Visualisations
  1608. Sparkline Directive for Angular with d3.js
  1609. Sparklines
  1610. SPARQLy GUIs: Linked Data and Semantic Web technologies
  1611. Spermatozoa
  1612. Sphere Spirals
  1613. Spherical Mercator
  1614. Spilhaus Maps
  1615. Spinny Globe
  1616. Spiral experiment
  1617. Spiral for John Hunter
  1618. Splay Tree animation with Dart D3.js and local storage
  1619. Spline Editor
  1620. Spline Transition
  1621. Split line game
  1622. Square Circle Spiral Illusion
  1623. Squares ↔ Hexagons
  1624. SRTM Tile Grabber: downloading elevation data
  1625. Stacked and grouped bar chart
  1626. Stacked Area Chart
  1627. Stacked Area via Nest
  1628. Stacked Bar Chart
  1629. Stacked Bar Chart
  1630. Stacked bar chart from a structure description of an R table
  1631. Stacked layout with time axis
  1632. Stacked Radial Area
  1633. Stacked-to-Grouped Bars
  1634. Stacked-to-multiple bar charts
  1635. Stage rankings – Tour de France 2013
  1636. Startseite – NZZ.ch
  1637. Startup Salary & Equity Compensation
  1638. Stat 221
  1639. Stat 221
  1640. Static Force Layout
  1641. SteamGraphs and Dex
  1642. Step by Step-Road Accidents in cities by years 2010
  1643. Steps Walked per Day
  1644. Stereographic
  1645. Sticky Force-Directed Graph
  1646. Stitching States from Counties
  1647. Stowers Group Collaboration Network
  1648. Strange attractor
  1649. Strata 2013 D3 Tutorial, Speaker Deck
  1650. Streamgraph
  1651. Streamgraph
  1652. Streamgraph
  1653. Streamgraph realtime streaming mouse coordinates
  1654. Streams
  1655. Streams
  1656. Street Extent Visualization Using #d3js and CartoDB
  1657. Strikeouts Are Still Soaring
  1658. Stripe Gross Volume witth D3.js
  1659. Stroke Dash Interpolation
  1660. stroke-dasharray
  1661. Students’s seating habits
  1662. style.setProperty
  1663. Subsecond Ticks
  1664. SugarForge: SolCRM by AlineaSol: Project Info
  1665. Summer Olympics Home Ground Advantage
  1666. Sunburst
  1667. Sunburst Layout with Labels
  1668. Sunburst with Distortion
  1669. Sunflower Phyllotaxis
  1670. Sunlight Heatmap
  1671. Sunny side of the Earth, for any date and time
  1672. Superformula Explorer
  1673. Superformula Tweening
  1674. Superscript Format
  1675. Superscript Format II
  1676. SVG feGaussianBlur
  1677. SVG foreignObject Example
  1678. SVG Geometric Zooming
  1679. SVG Group Element and D3.js
  1680. SVG Open Keynote Slides
  1681. SVG Path Cleaning
  1682. SVG Patterns
  1683. SVG resize to container
  1684. SVG Semantic Zooming
  1685. SVG Swarm
  1686. SVG to Canvas
  1687. SVG to Canvas to PNG using Canvg
  1688. Swimlane
  1689. Swiss Cantons
  1690. Swiss Topography
  1691. Symbol Map
  1692. Symbol Map
  1693. Table of Progress
  1694. Table Sorting
  1695. Table-driven plot
  1696. Tag Cloud
  1697. TAGSExplorer: Visualising Twitter graphs from a Google Spreadsheet
  1698. Talk at JS.geo 2013
  1699. Tampa Bay Rays Streamgraph
  1700. Telostats: Public bike stations in Tel Aviv
  1701. Templating ala Mustache with Chernoff faces example
  1702. Test Env
  1703. Tetris
  1704. Tetris
  1705. Text on arc path
  1706. TGI Models
  1707. The Amazing Pie
  1708. The Beautiful Table: fancy bar chart of football statistics
  1709. The business of Bond
  1710. The Concept Map
  1711. The d3 Community: How to Get Involved
  1712. The Diabetes Dashboard
  1713. The electoral map: building path to victory
  1714. The Euro Debt Crisis
  1715. The first commented line is your dabblet’s title
  1716. The first thing that should be shown in any Trigonometry class
  1717. The Gist to Clone All Gists
  1718. The Holy Bible Visualizaiton
  1719. The last slice of PIE
  1720. The Music of Graphs
  1721. The open source card report
  1722. The Polya process
  1723. The Polyconic Projection
  1724. The Polyglots Project
  1725. The Quest for the Graphical Web
  1726. The Senate Social Network
  1727. The Sentinal project
  1728. The Story of The US Told In 141 Maps
  1729. The Sun’s View of the Earth
  1730. The Wealth & Health of Nations
  1731. Thinking with Joins
  1732. Threat Report
  1733. Three Little Circles
  1734. Three-Axis Rotation
  1735. Threshold Choropleth
  1736. Threshold Encoding
  1737. Threshold Key
  1738. Time Bubble Lines
  1739. Time Series
  1740. Timeline
  1741. Timeline
  1742. Timeline of earthquake in Christchurch 2010
  1743. Times
  1744. Tissot’s Indicatrix
  1745. Tmcw’s bl.ocks
  1746. tnightingale bl.ocks
  1747. Tobler World-in-a-Square
  1748. Tooltips for D3.js visualizations
  1749. TopoJSON Examples
  1750. TopoJSON Layers
  1751. TopoJSON Parallax
  1752. TopoJSON Points
  1753. TopoJSON vectors on raster image tiles, with zoom and pan
  1754. Topology-Preserving Geometry Simplification
  1755. Towards Reusable Charts
  1756. TradeArc – Arc Diagram of Offseason NHL Trades
  1757. Traffix jitsu
  1758. Transform Interpolation
  1759. Transform Transitions
  1760. Transition End
  1761. Transition Example
  1762. Transition from a streamgraph to multiple area charts
  1763. Transition Speed Test
  1764. TransportView
  1765. Transverse Mercator
  1766. Transversing Equirectangular
  1767. Tree Layout from CSV
  1768. Tree layout mods
  1769. Tree Layout Orientations
  1770. Treemap
  1771. Treemap
  1772. Treemap Padding
  1773. Tributary
  1774. Tributary, optical_illusion_001_motion2
  1775. Tributary, simple globe canvas
  1776. Trisul Network Analytic
  1777. TruliaTrends
  1778. TruliaTrends
  1779. Try D3 Now
  1780. Trying out D3’s geographic features
  1781. Tübingen
  1782. Tufte’s slope graphs
  1783. Tweening Polygons
  1784. Tweitgeist: Live Top Hashtags on Twitter
  1785. Twitter Activity During Hurricane Sandy
  1786. Twitter Influencer Visualization
  1787. Twitter SVG Logo
  1788. Two Point Equidistant
  1789. Two Point Equidistant
  1790. Two Tables, Understanding D3 Selections
  1791. U.S. Airports
  1792. U.S. Counties TopoJSON
  1793. U.S. Counties TopoJSON Mesh
  1794. U.S. Land TopoJSON
  1795. U.S. Population Pyramid
  1796. U.S. Rivers
  1797. U.S. State Mesh
  1798. U.S. States TopoJSON
  1799. U.S. TopoJSON
  1800. U.S. TopoJSON
  1801. U.S. Urban Areas
  1802. Uber Rides by Neighborhood
  1803. UK University Statistics
  1804. UK Wind
  1805. UMLS (Unified Medical Language System) Visualizer
  1806. UN Global Pulse 2010 Visualization
  1807. Underscore’s Equivalents in D3
  1808. Understanding the D3 Parallel Plot Example
  1809. Unemployment ranked with horizontal bars
  1810. Unit circle animation
  1811. United Kingdom Peace Index
  1812. University of Washington Departments
  1813. Unknown Pleasures
  1814. Untitled-2
  1815. Update-Only Transition
  1816. Upside-Down Text
  1817. Urban bus races
  1818. Urban Water Explorer
  1819. US Budget
  1820. US Census Visualization
  1821. US Elections 2012 / Twitter
  1822. US energy consumption since 1775
  1823. US History in Maps
  1824. US, CA, MX and PR
  1825. Use Inkscape shapes in D3.js tree diagram
  1826. Use the Force! Slides
  1827. Use the Force! Video
  1828. Using and Abusing the force
  1829. Using d3 visualization for fraud detection and trending
  1830. Using D3, backbone and tornado to visualize histograms of a csv file
  1831. Using D3.js to Brute Force the Pirate Puzzle – Azundo Design
  1832. Using Inkscape with d3
  1833. Using Plunker for development and hosting your D3.js creations
  1834. Using Selections in D3 to Make Data-Driven Visualizations
  1835. Using SMASH for custom D3.js builds
  1836. Using SVG and canvas on the same force-directed layout
  1837. Using SVG Gradients and Filters With d3.js
  1838. Using the D3.js Visualization Library with AngularJS
  1839. UT1 – UTC
  1840. uvCharts
  1841. Van der Grinten II
  1842. Van der Grinten III
  1843. Van der Grinten IV
  1844. Van der Grinten Projection
  1845. Van Wijk and Nuij Zooming
  1846. van Wijk Smooth Zooming
  1847. Variable-width Histogram
  1848. Various visualisations especially with d3.geo
  1849. Vector Tiles
  1850. Vector Tiles
  1851. Vector Tiles
  1852. Vega for time series chart with shaded blocks
  1853. Vegetable Nutrition w/ Parallel Coordinates
  1854. Vélib network visualization
  1855. Venn diagram
  1856. Venn Diagram using Clipping
  1857. Venn Diagram using Opacity
  1858. Venn Diagrams with 3+ circles
  1859. Vertical Bullet Charts
  1860. Vertical Bullet Charts
  1861. Very limited in-progress attempt to hook d3.js up to three.js
  1862. Veteran Survival Data
  1863. Video tutorials in Japanese
  1864. Viewing OpenLearn Mindmaps Using d3.js
  1865. Viewing Relations, Attributes, and Entities in RDF
  1866. VIM keymap
  1867. Violin: Instrumenting JavaScript
  1868. Violin/Box plots
  1869. Virginia Counties
  1870. Visual Hacker News
  1871. Visual Search
  1872. Visual Sedimentation
  1873. Visual Sedimentation Tweet
  1874. Visual Storytelling with D3: An Introduction to Data Visualization in JS
  1875. Visual.ly Meetup Recap: Introductory D3 Workshop
  1876. Visual.ly tagged D3.js
  1877. Visualising a real-time DataSift feed with Node and D3.js
  1878. Visualising Change in Presidential Vote
  1879. Visualising ConAir Data With Cubism.js Arduino TempoDB Sinatra
  1880. Visualising New Zealand’s Stolen Vehicle Database Part1
  1881. Visualising New Zealand’s Stolen Vehicle Database Part2
  1882. Visualization of Beijing Air Pollution
  1883. Visualization of music suggestion
  1884. Visualize online conversion journeys
  1885. Visualize with d3js: Bring life to your data
  1886. Visualize Words on My Blog Using D3.js
  1887. Visualizing a network with Cypher and d3.js
  1888. Visualizing a newborn’s feeding and diaper activity
  1889. Visualizing book production – Tools of Change for Publishing
  1890. Visualizing Data with Web Standards Slides
  1891. Visualizing Data with Web Standards Video
  1892. Visualizing document similarity over time
  1893. Visualizing Facebook Friends With D3.js
  1894. Visualizing Flight Options
  1895. Visualizing Hospital Price Data
  1896. Visualizing my entire website as a network
  1897. Visualizing NetworkX graphs in the browser using D3
  1898. Visualizing NFL Draft History
  1899. Visualizing opinons around the world (zoomable world map and interactive pie chart)
  1900. Visualizing San Francisco Home Price Ranges
  1901. Visualizing Swiss politicians on Twitter using D3.js
  1902. Visualizing the iOS App Store
  1903. Visualizing the News through Metro Maps
  1904. Visualizing The Racial Divide
  1905. Visualizing U.S. Births and Deaths in Real-Time
  1906. VizWiz: Displaying time-series data
  1907. VLS&STATS making off « @comeetie :: blog
  1908. Von der EEG Umlage befreite Unternehmen
  1909. Voronoi Arc Map
  1910. Voronoi Boids: Voroboids
  1911. Voronoi Clipping
  1912. Voronoi Diagram
  1913. Voronoi Diagram with Force Directed Nodes and Delaunay Links
  1914. Voronoi Labels
  1915. Voronoi Lookup
  1916. Voronoi paint
  1917. Voronoi Picking
  1918. Voronoi Tesselation
  1919. Voronoi Tessellation (Redirect)
  1920. Voronoi Tessellation (Redirect)
  1921. Voronoi Test (N=2)
  1922. Voronoi tests
  1923. Voynich Manuscript Voyager
  1924. VVVV viewer
  1925. W3C Validation Errors
  1926. Wagner IV
  1927. Wagner VI Projection
  1928. Wagner VII
  1929. Walmart locations
  1930. Waterfall chart of Tendulkar’s ODI career
  1931. Waterman Butterfly
  1932. Waterman Butterfly Map
  1933. Wave
  1934. We Love France: transition between the Hexagon and a heart
  1935. We’re In The Money: How Much Do The Movies We Love Make?
  1936. Weather of the World
  1937. Web reporting with D3js and R using RStudio Shiny
  1938. Web Traffic as flying bubbles
  1939. Web-Based Visualization Part 1: The D3.js Key Concept
  1940. Webplatform dancing logo
  1941. WebPlatform.org SVG Logo
  1942. Website Graph Bavigation
  1943. Weeknd3
  1944. What do countries look like?
  1945. What Do You Work For?
  1946. WHat makes us happy
  1947. What Size Am I? Finding dresses that fit
  1948. When is Easter?
  1949. Which career should I invest in?
  1950. White House Petition Choropleth
  1951. Who are Rennes Metropolis inhabitants?
  1952. Who do they serve
  1953. Who Voted for Rick Santorum and Mitt Romney
  1954. Why are people shooting up our schools?
  1955. Wiechel
  1956. Wikistalker
  1957. Wimbledon
  1958. Wimbledon 2013 Player bubbles
  1959. Wind
  1960. Wind History
  1961. Winkel Tripel Graticule
  1962. Winkel Tripel Projection
  1963. Wood Grain
  1964. Word Cloud
  1965. Word Frequency Bubble Clouds
  1966. Word Tree
  1967. Word with map image tiles clipped to the font
  1968. Word wrap in SVG using foreignObject
  1969. World Bank Global Development Sprint
  1970. World Bank Global Development Sprint
  1971. World Boundaries TopoJSON
  1972. World Map
  1973. World Map with Country Descriptions
  1974. World Population Density with D3 and Hammer Projection
  1975. World Tour
  1976. World Wide Women’s Rights
  1977. WorldBank Contract Awards
  1978. Wrapping Long Labels
  1979. X-Value Mouseover
  1980. x3dom event test
  1981. xCharts: a D3-based library for building custom charts and graphs
  1982. XKCD-style plots
  1983. Your Tax-paid Tweets
  1984. Zensus 2011 Atlas
  1985. Zero Ticks
  1986. Zip Codes
  1987. Zipdecode
  1988. zipdecode
  1989. ZJONSSON’s bl.ocks
  1990. zmaril/d3 » src › core › nest.js
  1991. Zoom a map to a Feature Bounding Box
  1992. Zoom Center
  1993. Zoom Transitions
  1994. Zoomable Area
  1995. Zoomable Area Chart
  1996. Zoomable Circle Packing
  1997. Zoomable map
  1998. Zoomable Pack Layout
  1999. Zoomable Partition Layout
  2000. Zoomable Sunburst
  2001. Zoomable Treemap
  2002. Zoomdata
  2003. ZUI in D3.js

Also, here are my d3 examples. Please share with others and enjoy.

Data visualization: Principles

Why visualize data? It is a good way to communicate complex information, because we are highly visual animals, evolved to spot patterns and make visual comparisons. To visualize effectively, however, it helps to understand a little about how our brains process visual information. The mantra for this week’s class is: Design for the human brain!

Visualization: encoding data using visual cues

Whenever we visualize, we are encoding data using visual cues, or “mapping” data onto variation in size, shape or color, and so on. There are various ways of doing this, as this primer illustrates:

These cues are not created equal, however. In the mid-1980s, statisticians William Cleveland and Robert McGill ran some experiments with human volunteers, measuring how accurately they were able to perceive the quantitative information encoded by different cues. This is what they found:

This perceptual hierarchy of visual cues is important. When making comparisons with continuous variables, aim to use cues near the top of the scale wherever possible.

But this doesn’t mean that everything becomes a bar chart

Length on an aligned scale may be the best option to allow people to compare numbers accurately, but that doesn’t mean the other possibilities are always to be avoided in visualization. Indeed, color hue is a good way of encoding categorical data. The human brain is particularly good at recognizing patterns and differences. This means that variations in color, shape and orientation, while poor for accurately encoding the precise value of continuous variables, can be good choices for representing categorical data.

You can also combine different visual cues in the same graphic to encode different variables. But always think about the main messages you are trying to impart, and where you can use visual cues near the top of the visual hierarchy to communicate that message most effectively.

To witness this perceptual hierarchy, look at the following visual encodings of the same simple dataset. In which of the three charts is it easiest to compare the numerical values that are encoded?

If you have spent any time reading blogs on data visualization, you will know the disdain in which pie charts are often held. It should be clear which of these two charts is easiest to read:

(Source: VizThinker)

Pie charts encode continuous variables primarily using the angles made in the center of the circle. It is certainly true that angles are harder read accurately than aligned bars. However, note that encoding data using the area of circles — which has become a “fad” in data visualization in recent years — makes even tougher demands on your audience.

Which chart type should I use?

This is a frequently asked question, and the best answer is: Experiment with different charts, to see which works best to liberate the story in your data. Some of the visualization software — notably Tableau Public — will suggest chart types for you to try. However, it is good to have a basic framework to help you prioritize particular chart types for particular visualization tasks. Although it is far from comprehensive, and makes some specific chart suggestions that I would not personally endorse, this “chart of charts” provides a useful framework by providing four answers to the question: “What would you like to show?”

(Source: A. Abela, Extreme Presentation Method)

Last week, we covered charts to show the distribution of a single continuous variable, and to study the relationship between two continuous variables. So let’s now explore possibilities for comparison between items for a single continuous variable, and composition, or how parts make up the whole. In each case, this framework considers both a snapshot at one point in time, and how to visualize comparison and composition over time — a common task in data journalism.

I like to add a couple more answers to the question: connection, or visualizing how people, things, or organizations relate to one another; and location, which covers maps.

Simple comparisons: bars and columns

Applying the perceptual hierarchy of visual cues, bar and column charts are usually the best options for simple comparisons. Vertical columns often work well when few items are being compared, while horizontal bars may be a better option when there are many items to compare, as in this example from The Wall Street Journal, illustrating common passwords revealed by a 2013 data breach at Gawker Media.

Here I have used a bar chart to show payments for speaking about drug prescription made to doctors in California by the drug company Pfizer in the second half of 2009, using data gathered in reporting this story.

Notice how spot colour is used here as a secondary visual cue, to highlight the doctor who received the most money.

There is one sacrosanct rule with bar and column charts: Because they rely on the length of the bars to encode data, you must start the bars at zero. Failing to do this will mislead your audience. Several graphics aired by Fox News have been criticized for disobeying this rule, for example:

(Source: Fox News, via Media Matters for America)

Comparisons: change over time

Bar or column charts can also be used to illustrate change over time, but there are other possibilities, as shown in these charts showing participation in the federal government’s food stamps nutritional assistance program, from 1969 to 2014.

(Source: Peter Aldhous, from U.S. Department of Agriculture data)

Each of these charts communicates the same basic information with a subtly different emphasis. The column chart emphasizes each year as a discrete point in time, while the line chart focuses on the overall trend or trajectory. The dot-and-line chart is a compromise between these two approaches, showing the trend while also drawing attention to the value for each year. (The dot-column chart is an unusual variant of a column chart, included here to show another possible design approach.)

Multiple comparisons, including over time

When comparing very many items, or how one item has changed over time, “small multiples” provide another approach. They has been used very successfully in recent years by several news organizations. Here is a small section from a larger graphic showing the severity of drought in California in late 2013 and early 2014:

(Source: Los Angeles Times)

Small multiples are becoming more popular as more people consume news graphics on mobile devices. Unlike larger conventional graphics, they can be made to reflow easily in responsive web designs to display effectively on small screens.

If you are comparing two points in time for many items, a slope graph can be an effective choice. Slope falls about midway on the perceptual hierarchy of visual cues, but allows us to scan many items at once and note obvious differences. Here I used slope graphs to visualize data from a study examining the influence of putting house plants in hospital rooms on patient’s sense of well-being, measured before abdominal surgery, and after a period of recovery. I used thicker lines and color to highlight ratings that showed statistically significant improvements.

(Source: Peter Aldhous, from data in this research paper)

Composition: parts of the whole

This is where the much-maligned pie chart does have a role, although it is not the only option. Which of these two representations of an August 2014 poll of public opinion on President Barack Obama’s job performance makes the differences between his approval ratings for difference policy areas easiest to read, the pie charts or the stacked column charts below?

These graphics involve both comparison and composition — a common situation in data journalism.

(Source: Peter Aldhous, from CBS poll data, via PollingReport.com)

In class, we’ll discuss how both of these representations of the data could have been improved.

I would suggest abandoning pie charts if there are any more than three parts to the whole, as they become very hard to read when there are many segments. ProPublica’s graphics style guide goes further, allowing pie charts with two segments only.

Recent research into how people perceive composition visualizations with just categories suggests that the best approach may actually be a square chart. Surprisingly, this is an example where an encoding of area seems to beat length for accuracy:

(Source: Eagereyes)

Another approach, known as a treemap, similarly uses area to encode the size of parts of the whole, and can be effective to display “nested” variables — where each part of the whole is broken down into further parts. Here The New York Times used a treemap to display President Obama’s 2012 budget request to Congress, also using color to indicate whether the proposal represented an increase (shades of green) or decrease (red) in spending:

(Source: The New York Times)

Composition: change over time

Data journalists frequently need to show how parts of the whole vary over time. Here is an example, illustrating the development of drought across the United States, which uses a stacked columns format, in this case with no space between the columns.

(Source: The Upshot, The New York Times)

In the drought example, the size of the whole remains constant. Even if the size of the whole changes, this format can be used to show changes in the relative size of parts of the whole, by converting all of the values at each time interval into percentages of the total.

Stacked column charts can also be used to simultaneously show change in composition over time and change in the size of the whole. This example is from one of my own articles, looking at change over time in the numbers of three categories of scientific research papers in published in Proceedings of the National Academy of Sciences:

(Source: Nature)

Just as for simple comparisons over time, columns are not the only possibility when plotting changes in composition over time. The parts-of-the-whole equivalent of the line chart, stressing the overall trend rather than values at discrete points in time, is the stacked area chart. Again, these charts can be used to show change of time with the size of the whole held constant, or varying over time. This 2009 interactive from the The New York Times used this format to reveal how Americans typically spend their day:

(Source: The New York Times)

Making connections: network graphs

The chart types thought-starter we have used as a framework so far misses two of my answers to the question: “What would you like to show?” We will cover location in subsequent classes on mapping.

Journalists may be interested in exploring connection — which donors gave money to which candidate, how companies are connected through members of their boards, and so on. Network graphs can visualize these questions, and are sometimes used in news media. Here, for example, The New York Times showed connections between the national teams, players and club teams at the 2014 soccer World Cup:

(Source: The New York Times)

Complex network graphs can be very hard to read — “hairball” is a pejorative term used to describe them — so networks often need to be filtered to tell a clear story to your audience.

If you are interested in learning how to make network graphs, I have tutorials here.

Case study: Immunization in California kindergartens

Now we’ll explore a dataset at different levels of analysis, to show how different visual encodings may be needed for different visualization tasks with the same data.

This data, from the California Department of Public Health, gives numbers on immunization and enrollment at kindergartens across the state. The data is provided at the level of individual schools, but can be aggregated to look at counties, or the entire state.

When looking at change over time at the state level, the perceptual hierarchy makes a column chart a good choice:

(Source: Peter Aldhous, from California Department of Public Health data)

Notice that I’ve focused on the percentage of children with incomplete vaccination, rather than the percentage complete, for two reasons:

  • The differences between the lengths of the bars are greater, and so is easier to read.
  • More importantly, incomplete vaccination is what increases the risk of infectious disease outbreaks, which is why we care about this data.

But as for the food stamps data, a bar chart is not the only choice:

Here’s the same information presented as a line chart:

(Source: Peter Aldhous, from California Department of Public Health data)

Notice that here, I haven’t started the Y axis at zero. This would be unforgivable for a bar chart, where the length of the bar is the visual encoding, and so starting at an arbitrary value would distort the comparison between the bars. Here, however, I’m emphasizing the relative slope, to show change over time, so starting at zero is less crucial.

And here’s the data as a dot-and-line chart:

(Source: Peter Aldhous, from California Department of Public Health data)

Here, I’ve returned to a Y axis that starts at zero, so that the relative positions of the points can be compared accurately.

But what if we want to look at individual counties? When comparing a handful of counties, the dot-and-line chart, combining the visual cues of position on an aligned scale (for the yearly values) and slope (for the rate of change from year to year) works well:

(Source: Peter Aldhous, from California Department of Public Health data)

But there are 58 counties in California, and trying to compare them all using a dot-and-line chart results in chaos:

(Source: Peter Aldhous, from California Department of Public Health data)

In this case, it makes sense to drop down the perceptual hierarchy, and use the intensity of color to represent the percentage of incomplete immunization:

(Source: Peter Aldhous, from California Department of Public Health data)

This type of chart is called a heat map. It provides a quick and easy way to scan for the counties and years with the highest rates of incomplete immunization.

What if we want to visualize the data for every kindergarten on a single chart, to give an overview of how immunization rates vary across schools?

Here’s my best attempt at this:

(Source: Peter Aldhous, from California Department of Public Health data)

Here I’ve drawn a circle for every school, and used their position on an aligned scale, along the Y axis, to encode the percentage of incomplete immunization. I’ve also used the area of the circles to encode the enrollment at each kindergarten — but this is secondary to the chart’s main message, which is about the variation of immunization rates across schools.

Using color effectively

Color falls low on the perceptual hierarchy of visual cues, but as we have seen above, it is often deployed to highlight particular elements of a chart, and sometimes to encode data values. Poor choice of color schemes is a problem that bedevils many news graphics, so it is worth taking some time to consider how to use color to maximum effect.

It helps to think about colors in terms of the color wheel, which places colors that “harmonize” well together side by side, and arranges those that have strong visual contrast — blue and orange, for instance — at opposite sides of the circle:

(Source: Wikimedia Commons)

When encoding data with color, take care to fit the color scheme to your data, and the story you’re aiming to tell. Color is often used to encode the values of categorical data. Here you want to use “qualitative” color schemes, where the aim is to pick colors that will be maximally distinctive, as widely spread around the color wheel as possible:

(Source: ColorBrewer)

When using color to encode continuous data, it usually makes sense to use increasing intensity, or saturation of color to indicate larger values. These are called “sequential” color schemes:

(Source: ColorBrewer)

In some circumstances, you may have data that has positive and negative values, or which highlights deviation from a central value. Here, you should use a “diverging” color scheme, which will usually have two colors reasonably well separated on the color wheel as its end points, and cycle through a neutral color in the middle:

(Source: ColorBrewer)

Choosing color schemes is a complex science and art, but there is no need to “roll your own” for every graphic you make. Many visualization tools include suggested color palettes, and I often make use of the website from which the examples above were taken, called ColorBrewer. Orginally designed for maps, but useful for charts in general, these color schemes have been rigorously tested to be maximally informative.

In class, we will take some time to play around with ColorBrewer and examine its outputs. You will notice that the colors it suggests can be displayed according to their values on three color “models”: HEX, RGB and CMYK. Here is a brief explanation of these and other common color models.

  • RGB Three values, describing a color in terms of combinations of red, green, and blue light, with each scale ranging from 0 to 255; sometimes extended to RGB(A), where A is alpha, which encodes transparency. Example: rgb(169, 104, 54).
  • HEX A six-figure “hexadecimal” encoding of RGB values, with each scale ranging from hex 00 (equivalent to 0) to hex ff (equivalent to 255); HEX values will be familiar if you have any experience with web design, as they are commonly used to denote color in HTML and CSS. Example: #a96836
  • CMYK Four values, describing a color in combinations of cyan, magenta, yellow and black, relevant to the combination of print inks. Example: cmyk(0, 0.385, 0.68, 0.337)
  • HSL Three values, describing a color in terms of hue, saturation and lightness (running from black, through the color in question, to white). Hue is the position on a blended version of the color wheel in degrees around the circle ranging from 0 to 360, where 0 is red. Saturation and lightness are given as percentages. Example: hsl(26.1, 51.6%, 43.7%)
  • HSV/B Similar to HSL, except that brightness (sometimes called value) replaces lightness, running from black to the color in question. hsv(26.1, 68.07%, 66.25%)

Colorizer is one of several web apps for picking colors and converting values from one model to another.

Custom color schemes can also work well, but experiment to see how different colors influence your story. The following graphic from The Wall Street Journal, for instance, uses an unusual pseudo-diverging scheme to encode data — the US unemployment rate — that would typically be represented using a sequential color scheme. It has the effect of strongly highlighting periods where the jobless rate rises to around 10%, which flow like rivers of blood through the graphic. This was presumably the designer’s aim.

(Source: The Wall Street Journal)

If you intend to roll your own color scheme, try experimenting with I want hue for qualitative color schemes, the Chroma.js Color Scale Helper for sequential schemes, and this color ramp generator, in combination with Colorizer or another online color picker, for diverging schemes.

You will also notice that ColorBrewer allows you to select color schemes that are colorblind safe. Surprisingly, many news organizations persist in using color schemes that exclude a substantial minority of their audience. Red and green lie on opposite sides of the color wheel, and also can be used to suggest “good” or “go,” versus “bad” or “stop.” But about 5% of men have red-green colorblindness, also known as deuteranopia. Here, for example, is what the budget treemap from The New York Times would look like to someone with this condition:

(Source: The New York Times via Color Oracle)

Install Color Oracle to check how your charts and maps will look to people with various forms of colorblindness.

Using chart furniture, minimizing chart junk, highlighting the story

In addition to the data, encoded through the visual cues we have discussed, various items of chart furniture can help frame the story told by your data:

  • Title and subtitle These provide context for the chart.
  • Coordinate system For most charts, this is provided by the horizontal and vertical axes, giving a cartesian system defined by X and Y coordinates; for a pie chart it is provided by angles around a circle, called a polar coordinate system.
  • Scale Labeled tick marks and grid lines can help your audience read data values.
  • Labels You will usually want to label each axis. Think about other labels that may be necessary to explain the message of your graphic.
  • Legend If you use color or shape to encode data, you will often need a legend to explain this encoding.
  • Source information Usually given as a footnote. Don’t forget this!

Chart furniture can also be used to encode data, as in this example, which shows the terms of New York City’s police commissioners and mayors with reference to the time scale on the X axis:

(Source: The New York Times)

In this example, the label for the Y axis is displayed horizontally in the main chart area, rather than vertically alongside the chart. News media often do this so that readers don’t have to crane their necks to read the label. If you do this, check that it is clear to users that the label refers to scale on the Y axis.

Think carefully about how much chart furniture you really need, and make sure that the story told by your data is front and center. Think data-ink: What proportion the ink or pixels in your chart is actually encoding data, and what proportion is embellishment, adding little to your story?

Here is a nice example of a graphic that minimizes chart junk, and maximizes data-ink. Notice how the Y axis doesn’t need to be drawn, and the gridlines are an absence of ink, consisting of white lines passing through the columns:

(Source: The Upshot, The New York Times)

Contrast this with the proliferation of chart junk in the earlier misleading Fox News column chart.

Labels and spot-color highlights can be particularly useful to highlight your story, as shown in the following scatter plots, used here to show the relationship between the median salaries paid to women and men for the same jobs in 2015. In this case there is no suggestion of causation; here the scatter plot format is being used to display two distributions simultaneously — see the chart types thought-starter.

It is clear from the first, unlabeled plot, that male and female salaries for the same job are strongly correlated, as we would expect, but that relationship is not very interesting. Notice also how I have used transparency to help distinguish overlapping individual points.

(Source: Peter Aldhous, from Bureau of Labor Statistics data)

What we are interested in here is whether men and women are compensated similarly for doing the same jobs. The story in the data starts to emerge if you add a line of equal pay, with a slope of 1 (note that this isn’t a trend line, as we discussed last week). Here I have also highlighted the few jobs in which women in 2013 enjoyed a marginal pay gap over men:

(Source: Peter Aldhous, from Bureau of Labor Statistics data)

Notice how adding another line, representing a 25% pay gap, and highlighting the jobs where the pay gap between men and women is largest, emphasizes different aspects of the story:

(Source: Peter Aldhous, from Bureau of Labor Statistics data)

Pitfalls to avoid

If you ever decide to encode data using area, be sure to do so correctly. Hopefully it is obvious that if one unit is a square with sides of length one, then the correct way to represent a value of four is a square with sides of length two (2*2 = 4), not a square with sides of length four (4*4 = 16).

Mistakes are frequently made, however, when encoding data by the area of circles. In 2011, for instance, President Barack Obama’s State of the Union Address for the first time included an “enhanced” online version with supporting data visualizations. This included the following chart, comparing US Gross Domestic Product to that of competing nations:

(Source: The 2011 State of the Union Address: Enhanced Version)

Data-savvy bloggers were quick to point out that the data had been scaled by the radius of each circle, not its area. Because area = π * radius^2, you need to scale the circles by the square root of the radius to achieve the correct result, on the right:

(Source: Fast Fedora blog)

Many software packages (Microsoft Excel is a notable culprit) allow users to create charts with 3-D effects. Some graphic designers produce customized charts with similar aesthetics. The problem is that that it is very hard to read the data values from 3-D representations, as this example illustrates:

(Source: Good)

A good rule of thumb for data visualization is that trying to represent three dimensions on a two dimensional printed or web page is almost always one dimension too many, except in unusual circumstances, such as these representations of Mount St. Helens in Washington State, before and after its 1980 eruption:

(Source: OriginLab)

Above all, aim for clarity and simplicity in your chart design. Clarity should trump simplicity. As Albert Einstein is reputed to have said: “Everything should be made as simple as possible, but not simpler.”

Sometimes even leading media outlets lose their way. See if you can make sense of this interactive graphic on clandestine US government agencies and their contractors:

(Source: The Washington Post)

Be true to the ‘feel’ of the data

Think about what the data represents in the real world, and use chart forms, visual encodings and color schemes that allow the audience’s senses to get close to what the data means — note again the “rivers of blood” running through The Wall Street Journal’s unemployment chart, which suggest human suffering.

The best example I know of this uses sound rather than visual cues, so strictly speaking it is “sonification” rather than visualization. In 2010, this interactive from The New York Times explored the narrow margins separating medalists from also-rans in many events at the Vancouver Winter Olympics. It visualized the results in a conventional way, but also included sound files encoding the race timings with musical notes.

(Source: The New York Times)

Our brains process music in time, but perceive charts in space. That’s why the auditory component of this interactive was the key to its success.

Break the story down into scenes

Many stories have a step-by-step narrative, and different charts may tell different parts of the story. So think about communicating such stories through a series of graphics. This is another good reason to experiment with different chart types when exploring a new dataset. Here is a nice example of this approach, examining demographic change in Brazil:

(Source: Época, via Visualopolis)

Good practice for interactives

Nowadays the primary publication medium for many news graphics is the web or apps on mobile platforms, rather than print, which opens up many possibilities for interactivity. This can greatly enhance your ability to tell a story, but it also creates new possibilities to confuse and distract your audience — think of this as interactive chart junk.

A good general approach for interactive graphics is to provide an overview first, and then allow the interested user to zoom or filter to dig deeper into the data. In such cases, the starting state for an interactive should tell a clear story: If users have to make an effort to dig into a graphic to get anything from it, few are likely to do so. Indeed, assume that much of your audience will spend only a short time interacting with the data. “How Different Groups Spend Their Day” from The New York Times is a good example of this approach.

Similarly, don’t hide labels or information essential to understanding the graphic in tooltips that are accessed only on clicks or hovers. This is where to put more detailed information for users who have sufficient interest to explore further.

Make the controls for an interactive obvious — play buttons should look like play buttons, for instance. You can include a few words of explanation, but only a very few: as far as possible, how to use the interactive should be intuitive, and built into its design.

The interactivity of the web also facilitates a scene-by-scene narrative — a device employed frequently by The New York Times‘ graphics team in recent years. With colleagues at New Scientist, I also used this approach for this interactive, exploring the likely number of Earth-like planets in our Galaxy:

(Source: New Scientist)

‘Mobile-first’ may change your approach

Increasingly, news content is being viewed on mobile devices with small screens

At the most basic level, this means making graphics “responsive,” so that their size adjusts to screen size. But there is more to effective design for mobile than this.

We have already discussed the value of small multiples, which can be made to reflow for different screen sizes.

This interactive, exploring spending on incarceration by block in Chicago, is a nice example of organizing and displaying the same material differently for different screen sizes. Open it up on your laptop then reduce the size of your browswer window to see how it behaves.

(Source: DataMade)

Again, a step-by-step narrative can be a useful device in overcoming the limitations of a small screen. This interactive, exploring school segregation by race in Florida, is a good example of this approach:

(Source: Tampa Bay Times)

Here’s an article that includes some of my thoughts on the challenge of making graphics that work effectively on mobile.

Be careful with animation

Animation in interactives can be very effective. But remember the goal of staying true to the ‘feel’ of the data. Animated images evolve over time, so animation can be particularly useful to encode data that changes over time. But again you need to think about what the human brain is able to perceive. Research has shown that people have trouble tracking more than about four points at a time. Try playing Gapminder World without the energetic audio commentary of Hans Rosling’s “200 Countries” video, and see whether the story told by the data is clear.

Animated transitions between different states of a graphic can be pleasing. But overdo it, and you’re into the realm of annoying Powerpoint presentations with items zooming into slides with distracting animation effects. It’s also possible for elegant animated transitions to “steal the show” from the story told by the data, which arguably is the case for this exploration by The New York Times of President Obama’s 2013 budget request to Congress:

(Source: The New York Times)

Sketch and experiment to find the story

One key message I’d like you to take from this class is that there are many ways of visualizing the same data. Effective graphics and interactives do not usually emerge fully formed. They usually arise through sketching and experimentation.

As you sketch and experiment with data, use the framework suggested by the chart selector thought-starter to prioritize different chart types, and always keep the perceptual hierarchy of visual cues at the front of your mind. Remember the mantra: Design for the human brain!

Also, show your experiments to friends and colleagues. If people are confused or don’t see the story, you may need to try a different approach.

Learn from the experts

Over the coming weeks and beyond, make a habit of looking for innovative graphics, especially those employing unusual chart forms, that communicate the story from data in an effective way. Work out how they use visual cues to encode data. Here are a couple of examples from The New York Times to get you started. Follow the links from the source credits to explore the interactive versions:

(Source: The New York Times)

(Source: The New York Times)

Similarly, make note of graphics that communicate less effectively, and see if you can work out why.

Further reading

Alberto Cairo: The Functional Art: An Introduction to Information Graphics and Visualization

Nathan Yau: Data Points: Visualization That Means Something

What is data?

Before we leap into creating visualizations, charts and maps, we’ll consider the nature of data, and some basic principles that will help you to investigate datasets to find and tell stories. This is not a course in statistics, but I will introduce a few fundamental statistical concepts, which hopefully will stand you in good stead as we work to visualize data over the next few weeks — and beyond.

We’re often told that there are “lies, damned lies, and statistics.” But data visualization and statistics provide a view of the world that we can’t otherwise obtain. They give us a framework to make sense of daunting and otherwise meaningless masses of information. The “lies” that data and graphics can tell arise when people misuse statistics and visualization methods, not when they are used correctly.

The best data journalists understand that statistics and graphics go hand-in-hand. Just as numbers can be made to lie, graphics may misinform if the designer is ignorant of or abuses basic statistical principles. You don’t have to be an expert statistician to make effective charts and maps, but understanding some basic principles will help you to tell a convincing and compelling story — enlightening rather than misleading your audience.

I hope you will get hooked on the power of a statistical way of thinking. As data artist Martin Wattenberg of Google has said: “Visualization is a gateway drug to statistics.

The data we will use today

Download the data for this session from here. Unzip the folder and place it on your desktop. It contains the following files:

mlb_salaries_2014.csv –  Salaries of players in Major League Baseball at the start of the 2014 season, from the Lahman Baseball Database.

disease_democ.csv – Data illustrating a controversial theory suggesting that the emergence of democratic political systems has depended largely on nations having low rates of infectious disease, from the Global Infectious Diseases and Epidemiology Network and Democratization: A Comparative Analysis of 170 Countries.

gdp_pc.csv – World Bank data on 2014 Gross Domestic Product (GDP) per capita for the world’s nations, in current international dollars, corrected for purchasing power in different territories.

All of these files are in CSV format, which stands for comma-separated values. These are plain text files, in which fields in the data are separated by commas, and each record is on a separate row. CSV is a common format for storing and exchanging data, and can be read by most data analysis and visualization software. Values that are intended to be treated as text, rather than numbers, are often enclosed in quote marks.

When you ask for data, requesting CSVs or other plain text files is a good idea, as just about all software that handles data can export data as text. The characters used to separate the variables, called ‘delimiters,’ may vary. a ‘.tsv’ extension, for instance, indicates that the variables are separated by tabs. More generally, text files have the extention ‘.txt’.

Types of data: categorical vs. continuous

Before analyzing a dataset, or attempting to draw a graphic, it’s important to consider what, exactly, you’re working with.

Statisticians often use the term “variable.” This simply means any measure or attribute describing a particular item, or “record,” in a dataset. For example, school students might gather data about themselves for a class project, recording their gender and eye color, and height and weight. There’s an important difference between gender and eye color, called “categorical” variables, and height and weight, termed “continuous.”

  • Categorical variables are descriptive labels given to individual records, assigning them to different groups. The simplest categorical data is dichotomous, meaning that there are just two possible groups — in an election, for instance, people either voted, or they did not. More commonly, there are multiple categories. When analyzing traffic accidents, for example, you might consider the day of the week on which each incident occurred, giving seven possible categories.
  • Continuous data is richer, consisting of numbers that can have a range of values on a sliding scale. When working with weather data, for instance, continuous variables might include temperature and amount of rainfall.

There’s a third type of data we often need to consider: date and time. Perhaps the most common task in data journalism is to consider how a variable or variables have changed over time.

Datasets will usually contain a mixture of categorical and continuous variables. Here, for example, is a small part of a spreadsheet containing data on salaries for Major League Baseball players at the opening of the 2014 season:

(Source: Peter Aldhous, data from Lahman Baseball Database data)

This is a typical data table layout, with the individual records — the players — forming the rows and the variables recorded for each player arranged in columns. Here it is easy to recognize the categorical variables of teamID and teamName because they are each entered as text. The numbers for salary, expressed in full or in millions of dollars (salary_mil), are continuous variables.

Don’t assume, however, that every number in a dataset represents a continuous variable. Text descriptions can make datasets unwieldy, so database managers often adopt simpler codes, which are often be numbers, to store categorical data. You can see this in the following example, showing data on traffic accidents resulting in injury or death in Berkeley, downloaded from a database maintained by researchers on campus.

(Source: Peter Aldhous, from Transportation Injury Mapping System data)

Of the numbers seen here, only the YEAR, latitudes and longitudes (POINT_Y and POINT_X) and numbers of people KILLED or INJURED actually represent continuous variables. (Look carefully, and you will see that these numbers are justified right within each cell. The other numbers are justified left, like the text entries, because they were imported into the spreadsheet as text values.)

Like this example, many datasets are difficult to interpret without their supporting documentation. So each time you acquire a dataset, if necessary make sure you also obtain the “codebook” describing all of the variables/fields, and how they are coded. Here is [the codebook](http://paldhous.github.io/ucb/2016/dataviz/data/SWITRS_codebook.pdf) for the traffic accident data.

## What shape is your data?

Particularly when data shows a time series for a single variable, it is often provided like this data on trends in international oil production by region, in “wide” format:

(Source: Peter Aldhous, from U.S. Energy Information Administration data)

Here, all of the numbers represent the same variable, and there is a column for each year. This is good for people to read, but most software for data analysis and visualization does not play well with data in this format.

So if you receive “wide” data, you will usually need to covert it to “long” format, shown here:

(Source: Peter Aldhous, from U.S. Energy Information Administration)

Notice that now there is one column for each variable, which makes it easier for computers to understand.

How to Investigate data? The basic operations

There are many sophisticated statistical methods for crunching data, beyond the scope of this class. But the majority of a data journalist’s work involves the following simple operations:

Sort: Largest to smallest, oldest to newest, alphabetical etc.

Filter: Select a defined subset of the data.

Summarize/Aggregate: Deriving one value from a series of other values to produce a summary statistic. Examples include: count, sum, mean, median, maximum, minimum etc. Often you’ll group data into categories first, and then aggregate by group.

Join: Merging entries from two or more datasets based on common field(s), e.g. unique ID number, last name and first name.

We’ll return to these basic operations with data repeatedly over the coming weeks as we manipulate and visualize data.

Working with categorical data

You might imagine that there is little that you can do with categorical data alone, but it can be powerful, and can also be used to create new continuous variables.

The most basic operation with categorical data is to aggregate it by counting the number of records that fall into each category. This gives a table of “frequencies.” Often these are divided by the total number of records, and then multiplied by 100 to show them as percentages of the total.

Here is an example, showing data on the racial and ethnic identities of residents of Alameda County, from the 2010 US Census:

(Source: American FactFinder, U.S. Census Bureau)

Creating frequency counts from categorical data creates a new continuous variable — what has changed is the level of analysis. In this example, the original data would consist of a huge table with a record for each person, noting their racial/ethnic identity as categorical variables; in creating the frequency table shown here, the level of analysis has shifted from the individual to the racial/ethnic group.

We can ask more interesting questions by considering two categorical variables together — as pioneering data journalist Philip Meyer showed when he collected and analyzed survey data to examine the causes of the 1967 Detroit Riot. In July of that year, one of the worst riots in U.S. history raged in the city for five days, following a police raid on an unlicensed after-hours bar. By the time calm was restored, 43 people were dead, 467 injured and more than 2,000 buildings were destroyed.

At the time, Detroit was regarded as being a leader in race relations, so local racial discrimination was not initially seen as one of the main underlying causes of what happened. One popular theory at the time was that the riots were led by black residents who had moved to Detroit from the rural South. Meyer demolished this idea by examining data on whether or not the people surveyed had rioted, and whether they were brought up in the South or the North. He combined these results into a “contingency table” or “cross-tab”:

South North Total
Rioters 19 51 70
Non-rioters 218 149 367
Total 237 200 437

It certainly looks from these numbers as if Northerners were more likely to have participated in the riot. There’s a message here: sometimes a table of numbers is a perfectly acceptable way to communicate a simple story — we don’t always need fancy charts.

But Meyer’s team only interviewed a sample of people from the affected neighborhoods, not everyone who lived there. If they had taken another sample, might they have obtained different results? This is one example where some more sophisticated statistical analysis can help. For contingency tables, a method known as the chi-squared test asks the relevant question: if Southerners and Northerners were in fact equally likely to have rioted, what is the likelihood of obtaining a sample as biased as this by chance alone? In this case, the chi-squared test told Meyer that the probability was less than one in a thousand. So Meyer felt confident writing in the newspaper that Northerners were more likely to have rioted. His work won a Pulitzer Prize for the Detroit Free Press and shifted the focus of political debate about the riot to racial discrimination in policing and housing in Detroit.

Sampling and margins of error

Philip Meyer’s analysis of the Detroit riot raises a general issue: only sometimes is it possible to obtain and analyze all of the data.

There are only 30 teams in Major League Baseball, which at the start of the 2014 season had just under 750 players on their rosters. So compiling all of the data on their contracts and salaries is a manageable task.

But Meyer’s team couldn’t talk to all of the people in the riot-affected neighbourhoods, and pollsters can’t ask every voter which candidate they intend to vote for in an upcoming election. Instead they take a sample. This is common in many forms of data analysis, not just opinion polling.

For a sample to be valid, it must obey a simple statistical rule: every member of the group to which you wish to generalize the results of your analysis must have an equal chance of being included.

Entire textbooks have been written on sampling methods. The simplest form is random sampling — such as when numbers are written on pieces of paper, put into a bag, shaken up, and then drawn out one by one. Opinion pollsters often generate their samples by randomly generating valid telephone numbers, and calling the households concerned.

But there are other methods, and important thing is not that a sample was derived randomly, but that it is representative of the group from which it is drawn. In other words, sampling needs to avoid systematic bias that makes particular data points more or less likely to be included.

Be especially wary of using data from any sample that was not selected to be representative of a wider group. Media organizations frequently run informal online “polls” to engage their audience, but they tell us little about public opinion, as people who happened to visit a news website and cared enough to answer the questions posed may not be representative of the wider population.

To have a good chance of being representative, samples must also be sufficiently large. If you randomly sample ten people, for instance, chance effects mean that you may draw a sample that contains eight women and two men, or perhaps no men at all. Sample 1,000 people from the same population, however, and the proportions of men and women sampled won’t deviate so far from an even split.

This is why polls often give a “margin of error,” which is a measure of the uncertainty that arises from taking a relatively small sample. These margins of error are usually derived from a range of values that statisticians call the “95% confidence interval.” This means that if the same population were sampled repeatedly, the results would fall within this range of values 95 times out of 100.

When dealing with polling and survey data, look for the margins of error. Be careful not to mislead your audience by making a big deal of differences that may just be due to sampling error.

Working with continuous data: consider the distribution

When handling continuous data, there are more possibilities for aggregation than simply counting: you can add the numbers to give a total, for example, or calculate an average.

But summarizing continuous data in a single value inevitably loses a lot of information held in variation within the data. Understanding this variation may be key to working out the story the data may tell, and deciding how to analyze and visualize it. So often the first thing a good data journalist does when examining a dataset is to chart the distribution of each continuous variable. You can think of this as the “shape” of the dataset, for each variable.

Many variables, such as human height and weight, follow a “normal” distribution. If you draw a graph plotting the range of values in the data along the horizontal axis (also known as the X axis), and the number of individual data points for each value on the vertical or Y axis, a normal distribution gives a bell-shaped curve:

(Source: edited from Wikimedia Commons)

This type of chart, showing the distribution as a smoothed line, is known as a “density plot.”

In this example, the X axis is labeled with multiples of a summary statistic called the “standard deviation.” This is a measure of the spread of the data: if you extend one standard deviation either side of the average, it will cover just over 68% of the data points; two standard deviations will cover just over 95%. In simple terms, the standard deviation is a single number that summarizes whether the curve is tall and thin, or short and fat.

Normal distributions are so common that many statistical methods have been invented specifically to work with them. It is also possible to run tests to tell whether data deviates significantly from a normal distribution, to check whether it’s valid to use these methods.

Sometimes, however, it’s very clear just from looking at the shape of a dataset that it is not normally distributed. Here, for example, is the distribution of 2014 Major League Baseball salaries, drawn as columns in increments of $500,000. This type of chart is called a histogram:

(Source: Peter Aldhous, data from the Lahman Baseball Database)

This distribution is highly “skewed.” Almost half of the players were paid less than 1million, while there are just a handful of players who were paid more than 20 million; the highest-paid was pitcher Zack Grienke, paid $26 million by the Los Angeles Dodgers. Knowing this distribution may influence the story you would choose to tell from the data, the summary statistics you would choose to aggregate it, and the methods you might use to visualize it.

In class, we will plot the distribution of the 2014 baseball salary data using D3.

First we’ll need to shape our data in GoogelDrive. Create a new Spreadsheet and import/Upload File and navigate to the file mlb_salaries_2014.csv. The app should recognize that this is a CSV file, but if the preview of the data looks wrong, use import options to correct things. Once the data has imported, and analyze the variables, create a new row and label the categorical and continuous data.

First we need to tell the app what goes on the X and Y axis, respectively. Right-click anywhere in the main panel and select Map x(required)>salary_mil. Were are not going to plot another variable from the data on the Y axis; we just want a count of the players in each salary bin. So select Map y(required)>..count.. and click the Draw Plot button at bottom right.

You should see a blank grid, because we haven’t yet told the app what type of chart to draw. Right-click in the chart area, and select Add Layer>Univariate Geoms>histogram (univariate because we only have one variable, aggregated by a count). Click Draw plot and a chart should draw.

You will notice that the bins are wider than in the example above. Right-click on histogram in the Layers Panel at left, select binwidth>set, type 0.5 into the box and set value. Now hit Draw plot again and you should have something close to the chart above.

To save your plot click on Export PDF from the options at top left and click on the hyperlink at the next page.

Beyond the “average”: mean, median, and mode

Most people know how to calculate an average: add everything up, and divide this sum by the total number of values. Statisticians call this summary the “mean,” and for normally distributed data, it sits right on the top of the bell curve.

The mean is just one example of what statisticians call a “measure of central tendency.” The most common alternative is the “median,” which is the number that sits in the middle, when all the values are arranged in order. (If you have an even number of values, and no single number occupies the middle position, it would be the average of the two middle values.)

Notice how leading media outlets, such as The Upshot at The New York Times, often use medians, rather than means, in graphics summarizing skewed distributions, such as incomes or house prices. Here is an example from April 2014:

(Source: The Upshot, The New York Times)

Statisticians also sometimes consider the “mode,” which is the value that appears most frequently in the dataset.

For a perfect normal distribution, the mean, median and mode are all the same number. But for a skewed dataset like the baseball salaries, they may be very different — and using the mean can paint a rather misleading picture.

Calculate mean, median and mode

Navigate in your browser to your Google Drive account, then click the NEW button at top left and select Google Sheets. Once the spreadsheet opens select File>Import… from the top menu in Google Sheets and select the Upload tab in the dialog box that appears:

‘Click Select a file from your computer’, navigate to the file ‘mlb_salaries_2014.csv’ and click ‘Open’.

At the next dialog box click Import and the file should upload.

When the data has uploaded, drag the darker gray line at the bottom of the light gray cell at top left below row 1, so that the first row becomes a header.



Select column H by clicking its gray header containing the letter, then from the top menu select Insert>Column right five times to insert three new columns into the spreadsheet, calling them mean, median, and mode.

In the first cell of the mean column enter the following formula, which calculates the mean (called average in a spreadsheet) of all of the values in column H, containing the salaries in $ millions for each player.


Or alternatively, to select all the values in colum H without having to define their row numbers:


Now calculate the median salary:


And the mode:


These spreadsheet formulas are, in programming terms, functions. They act on the data specified in the brackets. This will become a familiar concept as we work with code in subsequent weeks.

Across Major League Baseball at the start of the 2014 season, the mean salary was 3.99 million. But when summarizing a distribution in a single value, we usually want to give a “typical” number. Here the mean is inflated by the vast salaries paid to a handful of star players, and may be a bad choice. The median salary of 1.5 million gives a more realistic view of what a typical MLB player was paid.

The mode is less commonly used, but in this case also tells us something interesting: it was $500,000, a sum earned by 35 out of the 746 players. This was the minimum salary paid under 2014 MLB contracts, which explains why it turns up more frequently than any other number. A journalist who considered the median, mode and full range of the salary distribution may produce a richer story than one who failed to think beyond the “average.”

Choosing bins for your data

Often we don’t want to summarize a variable in a single number. But that doesn’t mean we have to show the entire distribution. Frequently data journalists divide the data into groups or “bins,” to reveal how those groups differ from one another. A good example is this interactive graphic on the unemployment rate for different groups of Americans, published by The New York Times in November 2009:

(Source: The New York Times)

In its base state, the graphic shows the overall jobless rate, and how this has changed over time. The buttons along the top allow you to filter the data to examine the rate for different groups. Most of the filtering is on categorical variables, but notice that the continuous variable of age is collapsed into a categorical variable dividing people into three groups: 15-24 years old, 24-44 years old, and 45 years or older.

To produce informative graphics that tell a clear story, data journalists often need to turn a continuous variable into a categorical variable by dividing it into bins. But how do you select the range of values for each bin?

There is no simple answer to this question, as it really depends on the story you are telling. In the jobless rate example, the bins divided the population into groups of young, mid-career and older workers, revealing how young workers in particular were bearing the brunt of the Great Recession.

When binning data, it is again a good idea to look at the distribution, and experiment with different possibilities. For example, the wealth of nations, measured in terms of gross domestic product (GDP) per capita in 2014, has a skewed distribution, similar to the baseball salaries. If we look at the distribution, drawn here in increments of $2,500, we will see that it is highly skewed, rather like the baseball salaries:

(Source: Peter Aldhous, from World Bank data)

Straight away we can see that just a tiny handful of countries had a GDP per capita of more than 50,000,but there is a larger group with values above40,000.

The maps below reveal how setting different ranges for the bins changes the story told by the data. For the first map, I set the lower value for the top bin at $40,000, and then gave the bins equal ranges:(Source: Peter Aldhous, from World Bank data)

This might be useful for telling a story about how high per capita wealth is still concentrated into a small number of nations, but it does a fairly poor job of distinguishing between the per capita wealth of developing countries. And for poorer people, small differences in wealth make a big difference to living conditions.

So for the second map I set the boundaries so that roughly equal numbers of countries fell into each of the five bins. Now Japan, most of Western Europe and Russia join the wealthiest bin, middle-income countries like Brazil, China, and Mexico are grouped in another bin, and there are more fine-grained distinctions between the per capita wealth of different developing countries:(Source: Peter Aldhous, from World Bank data)

Some visualization and mapping software gives you the option of putting equal numbers of records into each bin — usually called “quantiles” (the quartiles we encountered on the box plots are one example). Note that calculated quantiles won’t usually give you nice round numbers for the boundaries between bins. So you may want to adjust the values, as I did for the second map.

You may also want to examine histograms for obvious “valleys” in the data, which may be good places for the breaks between bins.

Calculate quantiles

You can also calculate the boundaries between quantiles for yourself in a spreadsheet. Go back to the Google Spreadsheet with the baseball salary data, and add two more columns: quantile and quantile value.

Next we will calculate the boundaries for bins dividing the data into five quantiles, with one-fifth (0.2 in decimal) of the values in each bin.

First enter the following values into the quantile column, to reflect the division into five quantiles:


Then enter this formula into the first cell of the quantile value column:

=percentile(H:H, L2)

Copy the formula down the top four rows, and the spreadsheet should look as follows:

Rounding: avoid spurious precision

Often when you run calculations on numbers, you’ll obtain precise answers that can run to many decimal places. But think about the precision with which the original numbers were measured, and don’t quote numbers that are more precise than this. When rounding numbers to the appropriate level of precision, if the next digit is four or less, round down; if it’s six or more, round up. There are various schemes for rounding if the next digit is five, and there are no further digits to go on: I’d suggest rounding to an even number, which may be up or down, as this is the international standard in computing.

To round the mean value for the baseball salary data to two decimal places, edit the formula to the following:


This formula runs the round function on the result of the average function.

Per what? Working with rates and percentages

Often it doesn’t make much sense to consider raw numbers. There are more murders in Oakland (population from 2010 U.S. Census: 390,724) than in Orinda (2010 population: 17,643). But that’s a fairly meaningless comparison, unless we level the playing field by correcting for the size of the two cities. As in the wealth of nations example above, much of the time data journalists need to work with rates: per capita, per thousand people, and so on.

In simple terms, a rate is one number divided by another number. The key word is “per.” Per capita means “per person,” so to calculate a per capita figure you must divide the total value by the population size. But remember that most people find very small numbers hard to grasp: 0.001 and 0.0001 look similarly small at a glance, even though the first is ten times as large as the second. So when calculating rates, per capita is often not a good choice. For rare events like murders, or deaths from a particular disease, you may need to consider the rate per 1000 people, per 10,000 people, or even per 100,000 people: simply divide the numbers as before, then multiply by the “per” figure.

In addition to leveling the playing field to allow meaningful comparisons, rates can also help bring large numbers, which are again hard for most people to grasp, into perspective: it means little to most people to be told that the annual GDP of the United States is almost 17 trillion, but knowing that GDP per person is just over 50,000 is easier to comprehend.

Percentages are just a special case of rates, meaning “per hundred.” So to calculate a percentage, you divide one number by another and then multiply by 100.

Doing simple math with rates and percentages

Often you will need to calculate percentage change. The formula for this is:

(new value - old value) / old value * 100

Sometimes you may need to compare two rates or percentages. For example, if 50 out of 150 black mortgage applicants in a given income bracket are denied a mortgage, and 300 out of 2,400 white applicants in the same income bracket are denied a mortgage, the percentage rates of denial for the two groups are:


50 / 150 * 100 = 33.3%


300 / 2,400 * 100 = 12.5%

You can divide one percentage or rate by the other, but be careful how you describe the result:

33.3 / 12.5 = 2.664

You can say from this calculation that black applicants are about 2.7 times as likely to be denied loans as whites. But even though the Associated Press style guide doesn’t make the distinction, don’t say black applicants are about 2.7 times more likely to be denied loans. Strictly speaking, more likely refers to following calculation:

(33.3 - 12.5) / 12.5 = 1.664

Asking questions with data

As data journalists, we want to ask questions of data. When statisticians do this, they assign probabilities to the answers to specific questions. They might ask whether variables are related to one another: for instance, do wealthier people tend to live longer? Or they might ask whether different groups are different from one another: for example, do patients given an experimental drug get better more quickly than those given the standard treatment?

When asking these questions, the most common statistical approach may seem back to front. Rather than asking whether the answer they’re interested in is likely to be true, statisticians usually instead calculate probabilities that the observed results would be obtained if the “null hypothesis” is correct.

In Philip Meyer’s analysis of the Detroit riot, the null hypothesis was that Northerners and Southerners were equally likely to have rioted. In the examples given above, the null hypotheses are that there is no relationship between wealth and lifespan, and that the new drug is just as effective as the old treatment.

The resulting probabilities are often given as p values, which are shown as decimal numbers between 0 and 1. Philip Meyer’s chi-squared result would have been written as: p <0.001

The decimal 0.001 is the same as the fraction 1/1000, and < is the mathematical symbol for “less than.” So this means that there was less than one in a thousand chance that the difference in participation in the riot between Northerners and Southerners was caused by a chance sampling effect.

This would be called a “significant” result. When statisticians use this word, they don’t necessarily mean that the result has real-world consequence. It just means that the result is unlikely to be due to chance. However, if you have framed your question carefully, like Meyer did, a statistically significant result may be very consequential indeed.

There is no fixed cut-off for judging a result to be statistically significant. But as a general rule, p <0.05 is considered the minimum standard. This means you are likely to get this result by chance less than 5 times out of 100. If Meyer had obtained a result only just exceeding this standard, he may still have concluded that Northerners were more likely to riot, but would probably have been more cautious in how he worded his story.

When considering differences between groups, statisticians sometimes avoid p values, and instead give 95% confidence intervals, like the margins of error on opinion polls. Only if these don’t overlap would a statistician assume that the results for different groups are significantly different.

So when picking numbers from studies to use in your graphics, pay attention to p values and confidence intervals!

Relationships between variables: correlation and its pitfalls

Some of the most powerful stories that data can tell examine how one variable relates to another. This video from a BBC documentary made by Hans Rosling of the Gapminder Foundation, for example, explores the relationship between life expectancy in different countries and the nations’ wealth:

(Source: BBC/Gapminder)

Correlation refers to statistical methods that test the strength of the relationship between two variables recorded for each of the records in a dataset. Correlations can either be positive, which means that two variables tend to increase together; or negative, which means that as one variable increases in value, the other one tends to decrease.

Tests of correlation determine whether the recorded relationship between the two variables is likely to have arisen by chance — here the null hypothesis is that there is actually no relationship between the two.

Statisticians usually test for correlation because they suspect that variation in one variable causes variation in the other, but correlation cannot prove causation. For example, there is a statistically significant correlation between children’s shoe sizes and their reading test scores, but clearly having bigger feet doesn’t make a child a better reader. In reality, older children are likely both to have bigger feet and be better at reading — the causation lies elsewhere.

Here, the child’s age is a “lurking” variable. Lurking variables are a general problem in data analysis, not just in tests of correlation, and some can be hard even for experts to spot.

For example, by the early 1990s epidemiological studies suggested that women who took Hormone Replacement Therapy (HRT) after menopause were less likely to suffer from coronary heart disease. But some years later, when doctors ran clinical trials in which they gave women HRT to test this protective effect, it actually caused a statistically significant increase in heart disease. Going back to the original studies, researchers found that women who had HRT tended to be from higher socioeconomic groups, who had better diets and exercised more.

Data journalists should be very wary of falling into similar traps. While you may not be able to gather all of the necessary data and run statistical tests, take special care to think about possible lurking variables when drawing any chart that illustrates a correlation, or implies a relationship between two variables.

Scatter plots and trend lines

When testing the relationship between two variables, statisticians will usually draw a simple chart called a “scatter plot,” in which the records in a dataset are plotted as points according to their scores for each of the two variables.

Here is an example, illustrating a controversial theory claiming that the extent to which a country has developed a democratic political system is driven largely by the historical prevalence of infectious disease:

(Source: Peter Aldhous, data from the Global Infectious Diseases and Epidemiology Network and Democratization: A Comparative Analysis of 170 Countries)

As we have learned, correlation cannot prove causation. But correlations are usually run to explore relationships that are suspected to be causal. The convention when drawing scatter plots is to put the variable suspected to be the causal factor, called the “explanatory” variable, on the X axis, and the “response” variable on the Y.

When producing any chart based on the scatter plot format, it’s a good idea to follow this convention, because otherwise you are likely to confuse people who are used to viewing such graphs.

The example above also shows a straight line drawn through the points. This is known as a “trend line,” or the “line of best fit” for the data, and was calculated by a method called “linear regression.” It is a simple example of what statisticians call “fitting a model” to data.

Models are mathematical equations that allow statisticians to make predictions. The equation for this trend line is:

Y = -1.85*X + 104.45

Here X is the infectious disease prevalence score, Y is the democratization score, and 104.45 is the value at which the trend line would cross the vertical axis at X = 0. The slope of the line is -1.85, which means that when X increases by a single point, Y tends to decrease by 1.85 points. (For a trend line sloping upwards from left to right, the slope would be a positive number.)

The data used for this graph doesn’t include all of the world’s countries. But if you knew the infectious disease prevalence score for a missing nation, you could use the equation or the graph to predict its likely democratization score. To see how this works multiply 30 by -1.85, then add 104.45. The answer is roughly 49, and you will get the same result if you draw a vertical line up from the horizontal axis for an infectious disease prevalence score of 30, and then draw a horizontal line from where this crosses the trend line to the vertical axis at X = 0.

The most frequently used statistical test for correlation determines how closely the points cluster around the linear trend line, and determines the statistical significance of this relationship, given the size of the sample.

In this example there is a significant negative correlation, but that doesn’t prove that low rates of infectious disease made some countries more democratic. Not only are there possible lurking variables, but cause-and-effect could also work the other way round: more democratic societies might place greater value on their citizens’ lives, and make more effort to prevent and treat infectious diseases.

We will make a version of this chart in class. Import the file disease_democ.csv into the web app as before, and map infect_rate to the X axis and democ_score to the Y.
Now right-click in the main chart area and select Add layer>Bivariate Geoms>point. Click Draw plot and the points should appear on the scatter plot.

In the Layers panel, right-click on point and select size>Set>4 to increase the size of the points. Click Draw plot again.

Now we will add the trend line. Right-click back in the chart area, select Add layer>Bivariate Geoms>smooth and Draw plot. This will draw a smoothed line that meanders through the points, and plot a measure of the uncertainty around this line known as the “standard error.”

We instead want a linear trend line, without the standard error. In the Layers panel, right-click on smooth and select method>Set>lm (lm stands for for “linear model”); also select se>Set>FALSE, to remove the standard error plot. Draw plot and you should have something approximating the chart above. (The scales on the axes will be different, however.)

Beyond the straight line: non-linear relationships

Relationships between variables aren’t always best described by straight lines, as we can see by looking at the Gapminder Foundation’s Wealth & Health of Nations graphic, on which Hans Rosling’s “200 Countries” video is based. This is a bubble plot, a relative of the scatter plot in which the size of the bubbles depends upon a third variable — here each country’s population:

(Source: Gapminder)

Look carefully at the X axis: income per person doesn’t increase in even steps. Instead the graph is drawn so that the distance between 400 and 4,000 equals the distance between 4,000 and 40,000.

This is because the axis has been plotted on a “logarithmic” scale. It would increase in even steps if the numbers used were not the actual incomes per person, but their common logarithms (how many times 10 would have to be multiplied by itself to give that number).

Logarithmic scales are often used to make graphs plotting a wide range of values easier to read. If we turn off the logarithmic scale on the Gapminder infographic, the income per person values for the poorer countries bunch up, making it hard to see the differences between them:

(Source: Gapminder)

From this version of the graphic, we can see that a line of best fit through the data would be a curve that first rises sharply, and then levels out. This is called a “logarithmic curve,” which is described by another simple equation.

A logarithmic curve is just one example of a “non-linear” mathematical relationship that statisticians can use to fit a model to data.


  • Calculate the values needed to group nations into five quantile bins, according to the 2014 GDP per capita data in the file gdp_pc.csv.
  • Create the infectious disease and democratization scatter plot in D3 so that the points are color-coded by a nation’s income group. Note, if your solution results in multiple trend lines, you are mapping color at the wrong point in building the chart!
  • Save the plot as a PDF file. If the points on the scatter plot do not render correctly, paste the url for the PDF into another browser; it should work in Google Chrome.
  • Subscribe to visualization blogs, follow visualization thought leaders on Twitter, and take other steps to track developments in data viz and data journalism.
  • Send me your calculated quantile values, your scatter plot, and your initial list of visualization blogs by the start of next week’s class.

Further reading:

Sarah Cohen: Numbers in the Newsroom: Using Math and Statistics in News

Philip Meyer: Precision Journalism: A Reporter’s Introduction to Social Science Methods

Nominal, Ordinal & Quantitative


A Nominal variable (sometimes called a categorical variable) is one that has two or more categories, but there is no intrinsic ordering to the categories or is qualitative. For example, gender is a categorical variable having two categories (male and female) and there is no intrinsic ordering to the categories. Hair color is also a categorical variable having a number of categories (blonde, brown, brunette, red, etc.) and again, there is no agreed way to order these from highest to lowest. A purely categorical variable is one that simply allows you to assign categories but you cannot clearly order the variables. If the variable has a clear ordering, then that variable would be an ordinal variable, as described below.


An ordinal variable is similar to a nominal variable yet the difference between the two is that ordinals have a clear ordering and can be quanitative.  For example, suppose you have a variable, economic status, with three categories (low, medium and high).  In addition to being able to classify people into these three categories, you can order the categories as low, medium and high. Now consider a variable like educational experience (with values such as elementary school graduate, high school graduate, some college and college graduate). These also can be ordered as elementary school, high school, some college, and college graduate.  Even though we can order these from lowest to highest, the spacing between the values may not be the same across the levels of the variables.  Say we assign scores 1, 2, 3 and 4 to these four levels of educational experience and we compare the difference in education between categories one and two with the difference in educational experience between categories two and three, or the difference between categories three and four. The difference between categories one and two (elementary and high school) is probably much bigger than the difference between categories two and three (high school and some college).  In this example, we can order the people in level of educational experience but the size of the difference between categories is inconsistent (because the spacing between categories one and two is bigger than categories two and three).  If these categories were equally spaced, then the variable would be an interval variable.