2024-11-13 23:50:35 +00:00
<!DOCTYPE html> < html lang = "en-US" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width,height=device-height,initial-scale=1.0" > < meta name = "apple-mobile-web-app-capable" content = "yes" > < meta http-equiv = "X-UA-Compatible" content = "ie=edge" > < meta property = "og:type" content = "website" > < meta name = "twitter:card" content = "summary" > < style > @ m e d i a s c r e e n { b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - n o t e - c o n t a i n e r b u t t o n { a p p e a r a n c e : n o n e ; b a c k g r o u n d - c o l o r : i n i t i a l ; b o r d e r : 0 ; c o l o r : i n h e r i t ; c u r s o r : p o i n t e r ; f o n t - s i z e : i n h e r i t ; o p a c i t y : . 8 ; o u t l i n e : n o n e ; p a d d i n g : 0 ; t r a n s i t i o n : o p a c i t y . 2 s l i n e a r ; - w e b k i t - t a p - h i g h l i g h t - c o l o r : t r a n s p a r e n t } b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : d i s a b l e d , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : d i s a b l e d , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n : d i s a b l e d , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - n o t e - c o n t a i n e r b u t t o n : d i s a b l e d { c u r s o r : n o t - a l l o w e d ; o p a c i t y : . 1 5 ! i m p o r t a n t } b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : h o v e r , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : h o v e r , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n : h o v e r , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - n o t e - c o n t a i n e r b u t t o n : h o v e r { o p a c i t y : 1 } b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : h o v e r : a c t i v e , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : h o v e r : a c t i v e , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n : h o v e r : a c t i v e , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - n o t e - c o n t a i n e r b u t t o n : h o v e r : a c t i v e { o p a c i t y : . 6 } b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : h o v e r : n o t ( : d i s a b l e d ) , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n : h o v e r : n o t ( : d i s a b l e d ) , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n : h o v e r : n o t ( : d i s a b l e d ) , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - n o t e - c o n t a i n e r b u t t o n : h o v e r : n o t ( : d i s a b l e d ) { t r a n s i t i o n : n o n e } b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n [ d a t a - b e s p o k e - m a r p - o s c = p r e v ] , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n [ d a t a - b e s p o k e - m a r p - o s c = p r e v ] , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n . b e s p o k e - m a r p - p r e s e n t e r - i n f o - p a g e - p r e v { b a c k g r o u n d : # 0 0 0 0 u r l ( " d a t a : i m a g e / s v g + x m l ; b a s e 6 4 , P H N 2 Z y B 4 b W x u c z 0 i a H R 0 c D o v L 3 d 3 d y 5 3 M y 5 v c m c v M j A w M C 9 z d m c i I H Z p Z X d C b 3 g 9 I j A g M C A x M D A g M T A w I j 4 8 c G F 0 a C B m a W x s P S J u b 2 5 l I i B z d H J v a 2 U 9 I i N m Z m Y i I H N 0 c m 9 r Z S 1 s a W 5 l Y 2 F w P S J y b 3 V u Z C I g c 3 R y b 2 t l L W x p b m V q b 2 l u P S J y b 3 V u Z C I g c 3 R y b 2 t l L X d p Z H R o P S I 1 I i B k P S J N N j g g O T A g M j g g N T B s N D A t N D A i L z 4 8 L 3 N 2 Z z 4 = " ) n o - r e p e a t 5 0 % ; b a c k g r o u n d - s i z e : c o n t a i n ; o v e r f l o w : h i d d e n ; t e x t - i n d e n t : 1 0 0 % ; w h i t e - s p a c e : n o w r a p } b o d y [ d a t a - b e s p o k e - v i e w = " " ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n [ d a t a - b e s p o k e - m a r p - o s c = n e x t ] , b o d y [ d a t a - b e s p o k e - v i e w = n e x t ] . b e s p o k e - m a r p - p a r e n t > . b e s p o k e - m a r p - o s c > b u t t o n [ d a t a - b e s p o k e - m a r p - o s c = n e x t ] , b o d y [ d a t a - b e s p o k e - v i e w = p r e s e n t e r ] . b e s p o k e - m a r p - p r e s e n t e r - c o n t a i n e r . b e s p o k e - m a r p - p r e s e n t e r - i n f o - c o n t a i n e r b u t t o n . b e s p o k e - m a r p - p r e s e n t e r - i n f o - p a g e - n e x t { b a c k g r o u n d : # 0 0 0 0 u r l ( " d a t a : i m a g e / s v g + x m l ; b a s e 6 4 , P H N 2 Z y B 4 b W x u c z 0 i a H R 0 c D o v L 3 d 3 d y 5 3 M y 5 v c m c v M j A w M C 9 z d m c i I H Z p Z X d C b 3 g 9 I j A g M C A x M D A g M T A w I j 4 8 c G F 0 a C B m a W x s P S J u b 2 5 l I i B z d H J v a 2 U 9 I i N m Z m Y i I H N 0 c m 9 r Z S 1 s a W 5 l Y 2 F w P S J y b 3 V u Z C I g c 3 R y b 2 t l L W x p b m V q b 2 l u P S J y b 3 V u Z C I g c 3 R y b 2 t l L X d p Z H R o P S I 1 I i B k P S J t M z
2024-09-28 04:10:24 +00:00
* Marp default theme.
*
* @theme default
* @author Yuki Hattori
*
* @auto-scaling true
* @size 16:9 1280px 720px
* @size 4:3 960px 720px
2024-11-13 23:50:35 +00:00
*/div#\:\$p > svg > foreignObject > section{--base-size-4:calc(var(--marpit-root-font-size, 1rem) * 0.25);--base-size-8:calc(var(--marpit-root-font-size, 1rem) * 0.5);--base-size-16:calc(var(--marpit-root-font-size, 1rem) * 1);--base-text-weight-normal:400;--base-text-weight-medium:500;--base-text-weight-semibold:600;--fontStack-monospace:ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;}div#\:\$p > svg > foreignObject > section [data-theme=light],div#\:\$p > svg > foreignObject > section{color-scheme:light;--focus-outlineColor:#0969da;--fgColor-default:#1f2328;--fgColor-muted:#636c76;--fgColor-accent:#0969da;--fgColor-success:#1a7f37;--fgColor-attention:#9a6700;--fgColor-danger:#d1242f;--fgColor-done:#8250df;--bgColor-default:#fff;--bgColor-muted:#f6f8fa;--bgColor-neutral-muted:#afb8c133;--bgColor-attention-muted:#fff8c5;--borderColor-default:#d0d7de;--borderColor-muted:#d0d7deb3;--borderColor-neutral-muted:#afb8c133;--borderColor-accent-emphasis:#0969da;--borderColor-success-emphasis:#1a7f37;--borderColor-attention-emphasis:#bf8700;--borderColor-danger-emphasis:#cf222e;--borderColor-done-emphasis:#8250df;--color-prettylights-syntax-comment:#57606a;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-prettylights-syntax-entity:#6639ba;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#0550ae;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;}div#\:\$p > svg > foreignObject > section [data-theme=dark],div#\:\$p > svg > foreignObject > section:where(.invert){color-scheme:dark;--focus-outlineColor:#1f6feb;--fgColor-default:#e6edf3;--fgColor-muted:#8d96a0;--fgColor-accent:#4493f8;--fgColor-success:#3fb950;--fgColor-attention:#d29922;--fgColor-danger:#f85149;--fgColor-done:#ab7df8;--bgColor-default:#0d1117;--bgColor-muted:#161b22;--bgColor-neutral-muted:#6e768166;--bgColor-attention-muted:#bb800926;--borderColor-default:#30363d;--borderColor-muted:#30363db3;--borderColor-neutral-muted:#6e768166;--borderColor-accent-emphasis:#1f6feb;--borderColor-success-emphasis:#238636;--borderColor-attention-emphasis:#9e6a03;--borderColor-danger-emphasis:#da3633;--borderColor-done-emphasis:#8957e5;--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-inv
< / style > < / head > < body > < div class = "bespoke-marp-osc" > < button data-bespoke-marp-osc = "prev" tabindex = "-1" title = "Previous slide" > Previous slide< / button > < span data-bespoke-marp-osc = "page" > < / span > < button data-bespoke-marp-osc = "next" tabindex = "-1" title = "Next slide" > Next slide< / button > < button data-bespoke-marp-osc = "fullscreen" tabindex = "-1" title = "Toggle fullscreen (f)" > Toggle fullscreen< / button > < button data-bespoke-marp-osc = "presenter" tabindex = "-1" title = "Open presenter view (p)" > Open presenter view< / button > < / div > < div id = ":$p" > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "1" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h1 id = "chart-design" > Chart Design< / h1 >
< h2 id = "capp-30239" > CAPP 30239< / h2 >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "2" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "today" > Today< / h2 >
< ul >
< li > What general < strong > principles of visual design< / strong > are relevant to our work?< / li >
< li > What are the < strong > common types of charts< / strong > and how do we use them?< / li >
< li > When and how do we break the rules?< / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "3" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "edward-tufte" > Edward Tufte< / h2 >
< h3 id = "the-visual-display-of-quantitative-information" > The Visual Display of Quantitative Information< / h3 >
< p > < img src = "tufte.png" alt = "" / > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "4" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "key-ideas" > Key Ideas< / h2 >
< ul >
< li > Graphical Integrity: Above all else, show the data.< / li >
< li > Maximize the data-ink ratio.< / li >
2024-09-28 19:45:22 +00:00
< li > Minimize chart junk.< / li >
2024-09-28 04:10:24 +00:00
< li > Aim for high chart density, consider < em > small multiples< / em > .< / li >
< li > Revision & Editing are essential.< / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "5" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "tuftes-principles-for-graphical-integrity" > Tufte's Principles for < strong > Graphical Integrity< / strong > < / h2 >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "6" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< ol >
< li > The representation of numbers, as physically measured on the surface of the graphic itself, should be directly < strong > proportional< / strong > to the numerical quantities represented.< / li >
< / ol >
< p > < img src = "liefactor.jpg" alt = "" / > < / p >
< p > Mileage increase: 53%< br / >
Graph length increase: 783%< br / >
" Lie Factor" : 14.8x< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("spinal.webp");" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "7" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< ol start = "2" >
< li > Clear, detailed and thorough < strong > labeling< / strong > should be used to defeat graphical distortion and ambiguity.< / li >
< / ol >
< p > How many children get a spinal injury every year? (out of 74,000,000 children in US)< / p >
2024-10-05 03:56:07 +00:00
< p > Note: there are only 22,000 total spinal cord injuries a year in America (and most are 16-30yo).< / p >
2024-09-28 04:10:24 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("labeled.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "8" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< ol start = "3" >
< li > Write out explanation of the data on the graphic itself. < strong > Label important events< / strong > in the data.< / li >
< / ol >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "9" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< ol start = "4" >
< li > Show < strong > data variation, not design variation< / strong > .< / li >
< / ol >
< p > Deflated & standardized units of money are almost almost superior to nominal units.< / p >
< p > The number of information-carrying (variable) dimensions depicted should not exceed the number of dimensions in the data. (roughly 1:1 channel mapping)< / p >
< p > Exception: It is OK/common to pair color & shape, or for print color & texture to address issues that color presents.< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "10" lang = "en-US" >
2024-10-05 03:56:07 +00:00
< h2 id = "axesscale-mistakes" > Axes/Scale Mistakes< / h2 >
< ul >
< li > Carefully consider not starting at zero.< / li >
< li > Beware dual axes.< / li >
< li > Consider audience when using log scale.< / li >
< li > Related: No pie charts that don't add up to 100%< / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("tools_misleading_axes.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "1280" height = "720" > < section id = "11" lang = "en-US" data-marpit-advanced-background = "content" > < / section >
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("fox-bar.jpg");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "1280" height = "720" > < section id = "12" lang = "en-US" data-marpit-advanced-background = "content" > < / section >
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "vertical" > < figure style = "background-image:url("1080.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "1280" height = "720" > < section id = "13" lang = "en-US" data-marpit-advanced-background = "content" > < / section >
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("5920.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "1280" height = "720" > < section id = "14" lang = "en-US" data-marpit-advanced-background = "content" > < / section >
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "15" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "data-ink-ratio" > Data-Ink Ratio< / h2 >
< ul >
< li > < strong > Data-ink< / strong > : Ink (pixels) used to show data.< / li >
< li > Data-ink ratio: data-ink / total-ink< / li >
< / ul >
< p > < img src = "francetrains.jpg" alt = "" / > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("sizecycle.gif");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "16" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< p > < img src = "eec.gif" alt = "" / > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "17" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "optimizing-data-density" > Optimizing Data Density< / h2 >
< p > Number of entries in DataFrame / Area of Graphic.< / p >
< p > Classic example of high data density is the sparkline, which can fit on a line of text.< / p >
< p > < img src = "sparkline.png" alt = "" / > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("age-junk.png");background-size:auto 700px;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "18" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< h2 id = "chart-junk" > Chart Junk< / h2 >
< p > Anything that isn't relevant to understanding the data.< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "19" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< p > < img src = "chartjunk-bullet.webp" alt = "" / > < br / >
via junkcharts.typepad.com< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "20" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "common-chart-types" > Common Chart Types< / h2 >
2024-09-28 19:45:22 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "21" lang = "en-US" >
2024-09-28 21:51:09 +00:00
< h2 id = "how-to-pick" > How to Pick?< / h2 >
< ul >
< li > Quantitative / Quantitative:< / li >
< li > Quantitative / Temporal:< / li >
< li > Quantitative / Nominal:< / li >
< li > Nominal / Nominal:< / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "22" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h3 id = "bar-charts--histograms" > Bar Charts & Histograms< / h3 >
2024-09-28 19:45:22 +00:00
< ul >
< li > X/Y: Nominal (Binned Numerical - Histogram)< / li >
< li > Y/X: Quantitative< / li >
2024-10-05 03:56:07 +00:00
< li > Area must be relevant on bar charts: no log scales/cut axes!< / li >
2024-09-28 19:45:22 +00:00
< / ul >
< p > < img src = "bars.png" alt = "" / > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("lines.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "23" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< h3 id = "line--area-charts" > Line & Area Charts< / h3 >
2024-09-28 19:45:22 +00:00
< ul >
2024-09-28 21:51:09 +00:00
< li > X: Temporal / Quantitative< / li >
< li > Y: Quantitative (means / sums)< / li >
2024-09-28 19:45:22 +00:00
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("area.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "24" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 19:45:22 +00:00
< h3 id = "when-to-use-stacked-area-charts" > When to use stacked area charts?< / h3 >
2024-09-28 21:51:09 +00:00
< p > Sum of stacked axis variable < strong > must have meaning< / strong > .< / p >
2024-09-28 19:45:22 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("heatmap.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "25" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 19:45:22 +00:00
< h3 id = "heatmap" > Heatmap< / h3 >
< ul >
< li > X & Y: Quantitative or Nominal< / li >
< li > Color: Quantitative< / li >
< li > < code > mark_rect< / code > < / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("strip.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "26" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 19:45:22 +00:00
< h3 id = "strip-plot" > Strip Plot< / h3 >
< ul >
< li > Y: Nominal< / li >
< li > X: Temporal or Quantitative< / li >
< li > Color: Optional (any type)< / li >
< li > < code > mark_tick< / code > < / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("pyramid.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "27" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< h3 id = "pie--donut--radial-charts" > Pie / Donut / Radial Charts< / h3 >
2024-10-05 03:56:07 +00:00
2024-09-28 19:45:22 +00:00
< p > Theta: Quantitative (ratio)< br / >
Color: Nominal< / p >
< p > Direct comparison of segments is very difficult at n > 2.< / p >
< p > Only use when most important information is ratio between sizes, and relatively few categories.< / p >
2024-10-05 03:56:07 +00:00
< p > < strong > Must add up to 100%< / strong > < / p >
2024-09-28 19:45:22 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "28" lang = "en-US" >
2024-09-28 19:45:22 +00:00
< p > < img src = "pie-comparison.png" alt = "" / > < br / >
< a href = "https://www.storytellingwithdata.com/blog/2020/5/14/what-is-a-pie-chart" > https://www.storytellingwithdata.com/blog/2020/5/14/what-is-a-pie-chart< / a > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "29" lang = "en-US" >
2024-09-28 19:45:22 +00:00
< h3 id = "bump--rank-line-chart" > Bump / Rank Line Chart< / h3 >
< p > < img src = "rankline.png" alt = "left" style = "width:200px;" / > < / p >
< p > < img src = "bump.png" alt = "left" style = "width:500px;" / > < / p >
< p > Useful for showing changes in relative positioning.< / p >
< p > Require some data manipulation using < code > transform_window< / code > or pre-computing ranks. (see Altair gallery examples.)< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("bubble.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "30" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 19:45:22 +00:00
< h3 id = "scatter--bubble-plots" > Scatter & Bubble Plots< / h3 >
2024-09-28 21:51:09 +00:00
2024-09-28 19:45:22 +00:00
< ul >
< li > X / Y: Quantitative< / li >
< / ul >
< p > Bubble charts use size as a 3rd dimension.< / p >
2024-09-28 21:51:09 +00:00
< p > (Note subtle but useful transparency usage as well.)< / p >
2024-09-28 19:45:22 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("small-maps.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "31" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< h3 id = "small-multiples--faceting" > Small Multiples / Faceting< / h3 >
2024-09-28 21:51:09 +00:00
< p > < img src = "facet.png" alt = "facet" / > < / p >
2024-09-28 19:45:22 +00:00
2024-09-28 21:51:09 +00:00
< p > Useful when there is a nominal variable being compared across two other dimensions.< / p >
2024-09-28 19:45:22 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("obama-treemap.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "1280" height = "720" > < section id = "32" lang = "en-US" data-marpit-advanced-background = "content" > < / section >
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("london-trees.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "33" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< h3 id = "map-basics" > Map Basics< / h3 >
2024-09-28 21:51:09 +00:00
< p > Two most common:< / p >
< ul >
< li > point maps< / li >
< li > choropleths< / li >
< / ul >
< p > < em > Image: Trees in London, data.london.gov.uk< / em > < / p >
< p > < strong > We will revisit maps later in this course.< / strong > < / p >
2024-09-28 04:10:24 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "vertical" > < figure style = "background-image:url("arcgis-chorolpleth.png");background-size:600px auto;" > < / figure > < figure style = "background-image:url("arcgis-choropleth2.png");background-size:600px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "34" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 21:51:09 +00:00
< h2 id = "two-choropleths-same-data" > Two choropleths, same data.< / h2 >
2024-10-05 03:56:07 +00:00
< p > Color scale & unit of measurement is incredibly important.< / p >
2024-09-28 21:51:09 +00:00
< p > Consider alternatives if district/population sizes vary significantly.< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "35" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "when--how-to-break-the-rules" > When & How to Break the Rules< / h2 >
2024-09-28 19:45:22 +00:00
< p > < strong > When in doubt...< / strong > < / p >
2024-10-05 03:56:07 +00:00
< p > 9 out of 10 visualizations should be some variation of the common types.< / p >
< p > This does not need to hamper creativity, in the right context a little flourish can add a lot. But ensure that it does not obfuscate the data.< / p >
< p > Focus on Tufte's principles & ask for feedback!< / p >
2024-09-28 19:45:22 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "36" lang = "en-US" >
2024-09-28 19:45:22 +00:00
< h3 id = "case-study-two-innovations" > Case Study: Two Innovations< / h3 >
< p > Two visualization types that have had their moment in the past 10-15 years:< / p >
< ul >
< li > Hex/Grid Maps< / li >
< li > Word Clouds< / li >
< / ul >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "37" lang = "en-US" >
2024-09-28 19:45:22 +00:00
< h2 id = "grid-map" > Grid Map< / h2 >
< p > < img src = "npr-side-by-side.png" alt = "" / > < / p >
< p > Introduced in < a href = "https://blog.apps.npr.org/2015/05/11/hex-tile-maps.html" > https://blog.apps.npr.org/2015/05/11/hex-tile-maps.html< / a > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "38" lang = "en-US" >
2024-09-28 19:45:22 +00:00
< h2 id = "word-cloud" > Word Cloud< / h2 >
< p > < img src = "word-cloud.jpg" alt = "" / > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("nyt1.png");" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "39" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 19:45:22 +00:00
< p > < br / >
< img src = "nyt2.png" alt = "" / > < / p >
< p > Derived from same data as word cloud.< / p >
< p > source: NYTimes via < a href = "https://www.niemanlab.org/2011/10/word-clouds-considered-harmful/" > https://www.niemanlab.org/2011/10/word-clouds-considered-harmful/< / a > < / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "horizontal" > < figure style = "background-image:url("crochet.jpg");background-size:500px auto;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" x = "50%" > < section id = "40" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "left" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 19:45:22 +00:00
< h2 id = "narrative-supporting-graphics" > Narrative-supporting graphics< / h2 >
< p > by ulaniulani on flickr< / p >
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "left" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section lang = "en-US" data-marpit-advanced-background = "background" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" > < div data-marpit-advanced-background-container = "true" data-marpit-advanced-background-direction = "vertical" > < figure style = "background-image:url("snowfall.png");" > < / figure > < figure style = "background-image:url("lhc.png");background-size:contain;" > < / figure > < / div > < / section > < / foreignObject > < foreignObject width = "50%" height = "720" > < section id = "41" lang = "en-US" data-marpit-advanced-background = "content" data-marpit-advanced-background-split = "right" style = "--marpit-advanced-background-split:50%;" >
2024-09-28 04:10:24 +00:00
< h3 id = "when-its-ok-to-use-3d" > When it's OK to use 3D< / h3 >
2024-10-05 03:56:07 +00:00
< p > You have data that relates to a spatial third dimension.< / p >
2024-09-28 21:51:09 +00:00
2024-10-05 03:56:07 +00:00
< p > (Image: Snowfall, NY Times)< br / >
(Image: CERN Large Hadron Collider)< / p >
2024-09-28 04:10:24 +00:00
< / section >
2024-10-11 17:38:17 +00:00
< / foreignObject > < foreignObject width = "1280" height = "720" data-marpit-advanced-background = "pseudo" > < section lang = "en-US" data-marpit-advanced-background = "pseudo" data-marpit-advanced-background-split = "right" style = "" > < / section > < / foreignObject > < / svg > < svg data-marpit-svg = "" viewBox = "0 0 1280 720" > < foreignObject width = "1280" height = "720" > < section id = "42" lang = "en-US" >
2024-09-28 04:10:24 +00:00
< h2 id = "acknowledgements--references" > Acknowledgements & References< / h2 >
< p > Thanks to Alex Hale, Andrew McNutt, and Jessica Hullman for sharing their materials.< / p >
< ul >
< li > < a href = "https://www2.cs.uh.edu/~ceick/NO/COSC3337-DV2.pdf" > https://www2.cs.uh.edu/~ceick/NO/COSC3337-DV2.pdf< / a > < / li >
2024-09-28 19:45:22 +00:00
< li > Images from Tufte's Visual Display of Quantitative Information< / li >
< li > Images from Altair < a href = "https://altair-viz.github.io/gallery/index.html" > https://altair-viz.github.io/gallery/index.html< / a > < / li >
2024-09-28 04:10:24 +00:00
< / ul >
< / section >
2024-11-13 23:50:35 +00:00
< script > ! f u n c t i o n ( ) { " u s e s t r i c t " ; c o n s t t = { h 1 : { p r o t o : ( ) = > H T M L H e a d i n g E l e m e n t , a t t r s : { r o l e : " h e a d i n g " , " a r i a - l e v e l " : " 1 " } , s t y l e : " d i s p l a y : b l o c k ; f o n t - s i z e : 2 e m ; m a r g i n - b l o c k - s t a r t : 0 . 6 7 e m ; m a r g i n - b l o c k - e n d : 0 . 6 7 e m ; m a r g i n - i n l i n e - s t a r t : 0 p x ; m a r g i n - i n l i n e - e n d : 0 p x ; f o n t - w e i g h t : b o l d ; " } , h 2 : { p r o t o : ( ) = > H T M L H e a d i n g E l e m e n t , a t t r s : { r o l e : " h e a d i n g " , " a r i a - l e v e l " : " 2 " } , s t y l e : " d i s p l a y : b l o c k ; f o n t - s i z e : 1 . 5 e m ; m a r g i n - b l o c k - s t a r t : 0 . 8 3 e m ; m a r g i n - b l o c k - e n d : 0 . 8 3 e m ; m a r g i n - i n l i n e - s t a r t : 0 p x ; m a r g i n - i n l i n e - e n d : 0 p x ; f o n t - w e i g h t : b o l d ; " } , h 3 : { p r o t o : ( ) = > H T M L H e a d i n g E l e m e n t , a t t r s : { r o l e : " h e a d i n g " , " a r i a - l e v e l " : " 3 " } , s t y l e : " d i s p l a y : b l o c k ; f o n t - s i z e : 1 . 1 7 e m ; m a r g i n - b l o c k - s t a r t : 1 e m ; m a r g i n - b l o c k - e n d : 1 e m ; m a r g i n - i n l i n e - s t a r t : 0 p x ; m a r g i n - i n l i n e - e n d : 0 p x ; f o n t - w e i g h t : b o l d ; " } , h 4 : { p r o t o : ( ) = > H T M L H e a d i n g E l e m e n t , a t t r s : { r o l e : " h e a d i n g " , " a r i a - l e v e l " : " 4 " } , s t y l e : " d i s p l a y : b l o c k ; m a r g i n - b l o c k - s t a r t : 1 . 3 3 e m ; m a r g i n - b l o c k - e n d : 1 . 3 3 e m ; m a r g i n - i n l i n e - s t a r t : 0 p x ; m a r g i n - i n l i n e - e n d : 0 p x ; f o n t - w e i g h t : b o l d ; " } , h 5 : { p r o t o : ( ) = > H T M L H e a d i n g E l e m e n t , a t t r s : { r o l e : " h e a d i n g " , " a r i a - l e v e l " : " 5 " } , s t y l e : " d i s p l a y : b l o c k ; f o n t - s i z e : 0 . 8 3 e m ; m a r g i n - b l o c k - s t a r t : 1 . 6 7 e m ; m a r g i n - b l o c k - e n d : 1 . 6 7 e m ; m a r g i n - i n l i n e - s t a r t : 0 p x ; m a r g i n - i n l i n e - e n d : 0 p x ; f o n t - w e i g h t : b o l d ; " } , h 6 : { p r o t o : ( ) = > H T M L H e a d i n g E l e m e n t , a t t r s : { r o l e : " h e a d i n g " , " a r i a - l e v e l " : " 6 " } , s t y l e : " d i s p l a y : b l o c k ; f o n t - s i z e : 0 . 6 7 e m ; m a r g i n - b l o c k - s t a r t : 2 . 3 3 e m ; m a r g i n - b l o c k - e n d : 2 . 3 3 e m ; m a r g i n - i n l i n e - s t a r t : 0 p x ; m a r g i n - i n l i n e - e n d : 0 p x ; f o n t - w e i g h t : b o l d ; " } , s p a n : { p r o t o : ( ) = > H T M L S p a n E l e m e n t } , p r e : { p r o t o : ( ) = > H T M L E l e m e n t , s t y l e : " d i s p l a y : b l o c k ; f o n t - f a m i l y : m o n o s p a c e ; w h i t e - s p a c e : p r e ; m a r g i n : 1 e m 0 ; - - m a r p - a u t o - s c a l i n g - w h i t e - s p a c e : p r e ; " } } , e = " d a t a - m a r p - a u t o - s c a l i n g - w r a p p e r " , i = " d a t a - m a r p - a u t o - s c a l i n g - s v g " , n = " d a t a - m a r p - a u t o - s c a l i n g - c o n t a i n e r " ; c l a s s s e x t e n d s H T M L E l e m e n t { c o n t a i n e r ; c o n t a i n e r S i z e ; c o n t a i n e r O b s e r v e r ; s v g ; s v g C o m p u t e d S t y l e ; s v g P r e s e r v e A s p e c t R a t i o = " x M i n Y M i d m e e t " ; w r a p p e r ; w r a p p e r S i z e ; w r a p p e r O b s e r v e r ; c o n s t r u c t o r ( ) { s u p e r ( ) ; c o n s t t = t = > ( [ e ] ) = > { c o n s t { w i d t h : i , h e i g h t : n } = e . c o n t e n t R e c t ; t h i s [ t ] = { w i d t h : i , h e i g h t : n } , t h i s . u p d a t e S V G R e c t ( ) } ; t h i s . a t t a c h S h a d o w ( { m o d e : " o p e n " } ) , t h i s . c o n t a i n e r O b s e r v e r = n e w R e s i z e O b s e r v e r ( t ( " c o n t a i n e r S i z e " ) ) , t h i s . w r a p p e r O b s e r v e r = n e w R e s i z e O b s e r v e r ( ( ( . . . e ) = > { t ( " w r a p p e r S i z e " ) ( . . . e ) , t h i s . f l u s h S v g D i s p l a y ( ) } ) ) } s t a t i c g e t o b s e r v e d A t t r i b u t e s ( ) { r e t u r n [ " d a t a - d o w n s c a l e - o n l y " ] } c o n n e c t e d C a l l b a c k ( ) { t h i s . s h a d o w R o o t . i n n e r H T M L = ` \ n < s t y l e > \ n s v g [ $ { i } ] { d i s p l a y : b l o c k ; w i d t h : 1 0 0 % ; h e i g h t : a u t o ; v e r t i c a l - a l i g n : t o p ; } \ n s p a n [ $ { n } ] { d i s p l a y : t a b l e ; w h i t e - s p a c e : v a r ( - - m a r p - a u t o - s c a l i n g - w h i t e - s p a c e , n o w r a p ) ; w i d t h : m a x - c o n t e n t ; } \ n < / s t y l e > \ n < d i v $ { e } > \ n < s v g p a r t = " s v g " $ { i } > \ n < f o r e i g n O b j e c t > < s p a n $ { n } > < s l o t > < / s l o t > < / s p a n > < / f o r e i g n O b j e c t > \ n < / s v g > \ n < / d i v > \ n ` . s p l i t ( / \ n \ s * / ) . j o i n ( " " ) , t h i s . w r a p p e r = t h i s . s h a d o w R o o t . q u e r y S e l e c t o r ( ` d i v [ $ { e } ] ` ) ? ? v o i d 0 ; c o n s t t = t h i s . s v g ; t h i s . s v g = t h i s . w r a p p e r ? . q u e r y S e l e c t o r ( ` s v g [ $ { i } ] ` ) ? ? v o i d 0 , t h i s . s v g ! = = t & & ( t h i s . s v g C o m p u t e d S t y l e = t h i s . s v g ? w i n d o w . g e t C o m p u t e d S t y l e ( t h i s . s v g ) : v o i d 0 ) , t h i s . c o n t a i n e r = t h i s . s v g ? . q u e r y S e l e c t o r ( ` s p a n [ $ { n } ] ` ) ? ? v o i d 0 , t h i s . o b s e r v e ( ) } d i s c o n n e c t e d C a l l b a c k ( ) { t h i s . s v g = v o i d 0 , t h i s . s v g C o m p u t e d S t y l e = v o i d 0 , t h i s . w r a p p e r = v o i d 0 , t h i s . c o n t a i n e r = v o i d 0 , t h i s . o b s e r v e ( ) } a t t r i b u t e C h a n g e d C a l l b a c k ( ) { t h i s . o b s e r v e ( ) } f l u s h S v g D i s p l a y ( ) { c o n s t { s v g : t } = t h i s ; t & & ( t . s t y l e . d i s p l a y = " i n l i n e " , r e q u e s t A n i m a t i o n F r a m e ( ( ( ) = > { t . s t y l e . d i s p l a y = " " } ) ) ) } o b s e r v e ( ) { t h i s . c o n t a i n e r O b s e r v e r . d i s c o n n e c t ( ) , t h i s . w r a p p e r O b s e r v e r . d i s c o n n e c t ( ) , t h i s . w r a p p e r & & t h i s . w r a p p e r O b s e r v e r . o b s e r v e ( t h i s . w r a p p e r ) , t h i s . c o n t a i n e r & & t h i s . c o n t a i n e r O b s e r v e r . o b s e r v e ( t h i s . c o n t a i n e r ) , t h i s . s v g C o m p u t e d S t y l e & & t h i s . o b s e r v e S V G S t y l e ( t h i s . s v g C o m p u t e d S t y l e ) } o b s e r v e S V G S t y l e ( t ) { c o n s t e = ( ) = > { c o n s t i = ( ( ) = > { c o n s t e = t . g e t P r o p e r t y V a l u e ( " - - p r e s e r v e - a s p e c t - r a t i o " ) ; i f ( e ) r e t u r n e . t r i m ( ) ; r e t u r n ` x $ { ( ( { t e x t A l i g n : t , d i r e c t i o n : e } ) = > { i f ( t . e n d s W i t h ( " l e f t " ) ) r e t u r n " M i n " ; i f ( t . e n d s W i t h ( " r i g h t " ) ) r e t u r n " M a x " ; i f ( " s t a r t " = = = t | | " e n d " = = = t ) { l e t i = " r t l " = = = e ; r e t u r n " e n d " = = = t & & ( i = ! i ) , i ? " M a x " : " M i n " } r e t u r n " M i d " } ) ( t ) } Y M i d m e e t ` } ) ( ) ; i ! = = t h i s . s v g P r e s e r v e A s p e c t R a t i o & & ( t h i s . s v g P r e s e r v e A s p e c t R a t i o = i , t h i s . u p d a t e S V G R e c t ( ) ) , t = = = t h i s . s v g C o m p u t e d S t y l e & & r e q u e s t A n i m a t i o n F r a m e ( e ) } ; e ( ) } u p d a t e S V G R e c t ( ) { l e t t = M a t h . c e i l ( t h i s . c o n t a i n e r S i z e ? . w
< / script > < / foreignObject > < / svg > < / div > < div class = "bespoke-marp-note" data-index = "6" tabindex = "0" > < p > .0000003%< / p > < / div > < div class = "bespoke-marp-note" data-index = "30" tabindex = "0" > < p > source: https://www.juiceanalytics.com/writing/better-know-visualization-small-multiples< / p > < / div > < div class = "bespoke-marp-note" data-index = "31" tabindex = "0" > < p > source https://obamawhitehouse.archives.gov/interactive-budget< / p > < / div > < div class = "bespoke-marp-note" data-index = "32" tabindex = "0" > < p > source: https://data.london.gov.uk/dataset/local-authority-maintained-trees#:~:text=The%20data%20does%20not%20represent,streets%2C%20private%20gardens%20and%20more.< / p > < / div > < div class = "bespoke-marp-note" data-index = "33" tabindex = "0" > < p > source: https://carto.maps.arcgis.com/apps/webappviewer/index.html?id=7475c5788efe4c75a9642f552f61d568< / p > < / div > < div class = "bespoke-marp-note" data-index = "36" tabindex = "0" > < p > discuss: is this a good thing?< / p > < / div > < script > / * ! ! L i c e n s e : h t t p s : / / u n p k g . c o m / @ m a r p - t e a m / m a r p - c l i @ 4 . 0 . 3 / l i b / b e s p o k e . j s . L I C E N S E . t x t * /
!function(){"use strict";function e(e){return e& & e.__esModule& & Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,r=(n||(n=1,t={from:function(e,t){var n,r=1===(e.parent||e).nodeType?e.parent||e:document.querySelector(e.parent||e),o=[].filter.call("string"==typeof e.slides?r.querySelectorAll(e.slides):e.slides||r.children,(function(e){return"SCRIPT"!==e.nodeName})),a={},i=function(e,t){return(t=t||{}).index=o.indexOf(e),t.slide=e,t},s=function(e,t){a[e]=(a[e]||[]).filter((function(e){return e!==t}))},c=function(e,t){return(a[e]||[]).reduce((function(e,n){return e& & !1!==n(t)}),!0)},l=function(e,t){o[e]& & (n& & c("deactivate",i(n,t)),n=o[e],c("activate",i(n,t)))},d=function(e,t){var r=o.indexOf(n)+e;c(e>0?"next":"prev",i(n,t))& & l(r,t)},u={off:s,on:function(e,t){return(a[e]||(a[e]=[])).push(t),s.bind(null,e,t)},fire:c,slide:function(e,t){if(!arguments.length)return o.indexOf(n);c("slide",i(o[e],t))&&l(e,t)},next:d.bind(null,1),prev:d.bind(null,-1),parent:r,slides:o,destroy:function(e){c("destroy",i(n,e)),a={}}}; return(t||[]).forEach((function(e){e(u)})),n||l(0),u}}),t),o=e(r);const a=document.body,i=(...e)=>history.replaceState(...e),s="",c="presenter",l="next",d=["",c,l],u="bespoke-marp-",f=`data-${u}`,m=(e,{protocol:t,host:n,pathname:r,hash:o}=location)=>{const a=e.toString();return`${t}//${n}${r}${a?"?":""}${a}${o}`},g=()=>a.dataset.bespokeView,p=e=>new URLSearchParams(location.search).get(e),v=(e,t={})=>{const n={location,setter:i,...t},r=new URLSearchParams(n.location.search);for(const t of Object.keys(e)){const n=e[t];"string"==typeof n?r.set(t,n):r.delete(t)}try{n.setter({...window.history.state??{}},"",m(r,n.location))}catch(e){console.error(e)}},h=(()=>{const e="bespoke-marp";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}})(),y=e=>{try{return localStorage.getItem(e)}catch{return null}},b=(e,t)=>{try{return localStorage.setItem(e,t),!0}catch{return!1}},w=e=>{try{return localStorage.removeItem(e),!0}catch{return!1}},x=(e,t)=>{const n="aria-hidden";t?e.setAttribute(n,"true"):e.removeAttribute(n)},k=e=>{e.parent.classList.add(`${u}parent`),e.slides.forEach((e=>e.classList.add(`${u}slide`))),e.on("activate",(t=>{const n=`${u}active`,r=t.slide,o=r.classList,a=!o.contains(n);if(e.slides.forEach((e=>{e.classList.remove(n),x(e,!0)})),o.add(n),x(r,!1),a){const e=`${n}-ready`;o.add(e),document.body.clientHeight,o.remove(e)}}))},$=e=>{let t=0,n=0;Object.defineProperty(e,"fragments",{enumerable:!0,value:e.slides.map((e=>[null,...e.querySelectorAll("[data-marpit-fragment]")]))});const r=r=>void 0!==e.fragments[t][n+r],o=(r,o)=>{t=r,n=o,e.fragments.forEach(((e,t)=>{e.forEach(((e,n)=>{if(null==e)return;const a=t< r | | t = ==r&&n<=o;e.setAttribute(`${f}fragment`,(a?"":"in")+"active");const i = `${f}current-fragment`;t===r&&n===o?e.setAttribute(i,"current"):e.removeAttribute(i)}))})),e.fragmentIndex=o;const a = {slide:e.slides[r],index:r,fragments:e.fragments[r],fragmentIndex:o};e.fire("fragment",a)};e.on("next",(({fragment:a=!0})= > {if(a){if(r(1))return o(t,n+1),!1;const a=t+1;e.fragments[a]& & o(a,0)}else{const r=e.fragments[t].length;if(n+1< r ) return o ( t , r-1 ) , ! 1 ; const a = e.fragments[t+1];a&&o(t+1,a.length-1)}})),e.on("prev",(({fragment:a=!0})= > {if(r(-1)& & a)return o(t,n-1),!1;const i=t-1;e.fragments[i]& & o(i,e.fragments[i].length-1)})),e.on("slide",(({index:t,fragment:n})=>{let r=0;if(void 0!==n){const o=e.fragments[t];if(o){const{length:e}=o;r=-1===n?e-1:Math.min(Math.max(n,0),e-1)}}o(t,r)})),o(0,0)},E=document,L=()=>!(!E.fullscreenEnabled& & !E.webkitFullscreenEnabled),S=()=>!(!E.fullscreenElement& & !E.webkitFullscreenElement),P=e=>{e.fullscreen=()=>{L()& & (async()=>{S()?(E.exitFullscreen||E.webkitExitFullscreen)?.call(E):((e=E.body)=>{(e.requestFullscreen||e.webkitRequestFullscreen)?.call(e)})()})()},document.addEventListener("keydown",(t=>{"f"!==t.key& & "F11"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!L()||(e.fullscreen(),t.preventDefault())}))},_=`${u}inactive`,T=(e=2e3)=>({parent:t,fire:n})=>{const r=t.classList,o=e=>n(`marp-${e?"":"in"}active`);let a;const i=()=>{a& & clearTimeout(a),a=setTimeou