-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
404 lines (401 loc) · 19.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html>
<html lang="en">
<head>
<title>Week 3 Why, abstracting the tasks. MIDS W209 Information Visualization Slides</title>
<meta charset="utf-8">
<meta name="author" content="John Alexis Guerra Gómez">
<meta name="description" content="Week 3 Why, abstracting the tasks. MIDS W209 Information Visualization Slides">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fjalla+One|Raleway|PT+Sans+Narrow">
<link rel="stylesheet" href="https://use.typekit.net/yjc0afr.css">
<link rel="stylesheet" href="../plugin/highlight/monokai.css" id="highlight-theme">
<link href="../css/reveal.css" rel="stylesheet">
<link href="../css/theme/white.css" rel="stylesheet" id="theme">
<link href="../css/style.css" rel="stylesheet">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1 class="title">Why: abstracting the tasks<br><small>MIDS W209: Information Visualization</small></h1>
<div class="r-stretch"></div>
<div class="tiny"><a href="https://johnguerra.co/" target="_blank"><strong> John Alexis Guerra Gómez</strong></a><span> | john.guerra[at]gmail.com</span><a href="https://twitter.com/duto_guerra"> | @duto_guerra</a><br><a href="https://johnguerra.co/lectures/MIDS_W209_Information_Visualization/03_Why/" target="_blank">https://johnguerra.co/lectures/MIDS_W209_Information_Visualization/03_Why/</a></div>
<div class="logo"><a href="https://datascience.berkeley.edu/"><img class="logo" src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></a></div>
<div class="tiny">Partially based on<a href="https://www.cs.ubc.ca/~tmm/talks.html#minicourse14"> slides from Tamara Munzner</a></div>
</section>
<section id="outline">
<section>
<h2>What we are going to learn</h2>
<ul>
<li>Abstracting the tasks (why)</li>
<li class="fragment">Define the verb of the task (action)</li>
<li class="fragment">Define the noun of the task (targets)</li>
<li class="fragment">Tasks good practices</li>
<li class="fragment">Deriving new data</li>
</ul>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="why">
<section>
<h1>Abstracting the tasks (Why)</h1>
</section>
<section data-background-size="contain" data-background="../shared_images/why_sheet.png" id="why"></section>
<section>
<h2>Why analyze tasks?</h2>
<ul>
<li>Abstract tasks are domain-independent</li>
<li class="fragment">Two different domain problems<span class="fragment"> 👉 same task abstraction<span class="fragment"> 👉 same solution</span></span></li>
<li class="fragment">Visualization idioms are good for some tasks and bad for others</li>
</ul>
</section>
<section>
<h2>Task construction</h2>
</section>
<section>
<div class="flex">
<div class="half">
<div class="fragment" data-fragment-index="1">Action (verb)</div><img class="fragment" data-fragment-index="3" src="../shared_images/vad_book_alldiagrams/why_actions.png" alt="Why Actions">
</div>
<div style="flex=2%">+</div>
<div class="half">
<div class="fragment" data-fragment-index="2">Target (noun)</div><img class="fragment" data-fragment-index="4" src="../shared_images/vad_book_alldiagrams/why_targets.png" alt="Why Targets">
</div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="actions">
<section>
<h1>Actions<br><small>verbs</small></h1>
</section>
<section>
<h2>Actions: Levels</h2>
<div>Three levels:</div>
<ul class="line-compressed">
<li>Analyze</li>
<li class="fragment">Search</li>
<li class="fragment">Query</li>
</ul>
<div class="fragment">Try being specific</div>
</section>
<section>
<h3>Actions: Analyze, High-level</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li class="fragment">Consume
<ul>
<li class="fragment">Discover <span class="fragment">vs. present</span></li>
<li class="fragment">Enjoy</li>
</ul>
</li>
<li class="fragment">Produce
<ul>
<li class="fragment">Annotate<span class="fragment">, record</span></li>
<li class="fragment"><strong>Derive</strong></li>
</ul>
</li>
</ul>
</div>
<div class="half vcentered r-stretch"><img src="../shared_images/vad_book_alldiagrams/why_actions_analyze.png" alt="Why Actions: Analyze"></div>
</div>
</section>
<section class="full">
<h3>Actions: Search, Mid-level</h3>
<div class="flex">
<div class="half vcentered"><img src="../shared_images/vad_book_alldiagrams/why_actions_search.png" alt="Why Actions: search"></div>
<div class="half small line-compressed">
<ul>
<li class="fragment"><strong>Target</strong>
<ul>
<li class="fragment">I know what I'm looking for</li>
<li class="fragment">E.g., what's the salary of the <strong>CEO</strong>? <span class="fragment">👆 Target known</span></li>
<li class="fragment">E.g., who has the highest salary? <span class="fragment">👆 Target unknown</span></li>
</ul>
</li>
</ul>
</div>
</div>
</section>
<section class="full">
<h3>Actions: Search, Mid-level</h3>
<div class="flex">
<div class="half vcentered"><img src="../shared_images/vad_book_alldiagrams/why_actions_search.png" alt="Why Actions: search"></div>
<div class="half">
<ul class="small">
<li class="fragment"><strong>Location</strong>
<ul>
<li class="fragment">I know where the mark is going to be located in the chart</li>
<li class="fragment">Scales ordered alphabetically</li>
</ul>
</li>
</ul>
</div>
</div>
</section>
<section class="full">
<h3>Actions: Query, Low-level</h3>
<div class="flex">
<div class="half">
<div class="small">How much of the data matter?</div>
<ul class="small">
<li class="fragment">One <span class="fragment">👉 identify</span></li>
<li class="fragment">Some <span class="fragment">👉 compare</span></li>
<li class="fragment">All <span class="fragment">👉 summarize</span></li>
</ul>
</div>
<div class="half vcentered"><img data-fragment-index="3" src="../shared_images/vad_book_alldiagrams/why_actions_query.png" alt="Why Actions: query"></div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="targets">
<section>
<h1>Targets<br><small>nouns</small></h1>
</section>
<section class="full"><img style="max-height:'600px'" src="../shared_images/vad_book_alldiagrams/why_targets.png" alt="Why Targets"></section>
<section>
<h3>Targets: Trends, outliers, features</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li>Trends (or patterns): <span class="fragment">e.g., are sales increasing?</span></li>
<li class="fragment">Outliers: <span class="fragment">one or some that aren't like the others</span></li>
<li class="fragment">Features: <span class="fragment">👉 task-dependent (e.g., a V-shaped recession)</span></li>
</ul>
</div>
<div class="half vcentered r-stretch"><img style="max-width:700px" src="../shared_images/vad_book_alldiagrams/why_targets_all_data.png" alt="Why Targets: All data"></div>
</div>
</section>
<section>
<h3>One Attribute: Distributions, Extremes</h3>
<div class="flex">
<div class="half vcentered r-stretch"><img src="../shared_images/vad_book_alldiagrams/why_targets_attributes_one.png" alt="Why Targets: Attributes"></div>
<div class="half">
<ul class="small">
<li>Distribution <span class="fragment">(e.g., GDP distribution across multiple countries)</span></li>
<li>Extremes <span class="fragment">(e.g., country with highest GDP)</span></li>
</ul>
</div>
</div>
</section>
<section>
<h3>Many Attributes: Dependency, Correlation, Similarity</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li>Dependency <span class="fragment">(e.g., do all NBA players attended college?)</span></li>
<li>Correlation <span class="fragment">(e.g., do higher-paid players score more?)</span></li>
<li>Similarity <span class="fragment">(e.g., do Curry and Hardem shoot the same?)</span></li>
</ul>
</div>
<div class="half vcentered r-stretch"><img src="../shared_images/vad_book_alldiagrams/why_targets_attributes_many.png" alt="Why Targets: Attributes"></div>
</div>
</section>
<section>
<h3>Networks: Topology and Shape</h3>
<div class="flex">
<div class="half">
<ul class="small">
<li>Topology <span class="fragment">(e.g., do all my classmates follow each other?)</span></li>
<li>Paths <span class="fragment">(e.g., who do I know on LinkedIn that knows Bill Gates?)</span></li>
</ul>
</div>
<div class="half vcentered r-stretch"><img src="../shared_images/vad_book_alldiagrams/why_targets_networks.png" alt="Why Targets: Networks"></div>
</div>
</section>
<section>
<h3>Targets: Spatial data</h3>
<div class="flex">
<div class="half vcentered r-stretch"><img src="../shared_images/vad_book_alldiagrams/why_targets_spatial_data.png" alt="Why Targets: Networks"></div>
<div class="half">
<ul class="small">
<li>Shape <span class="fragment">(e.g., is there a park within 100 feet of every school?)</span></li>
</ul>
</div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="goodPractices">
<section>
<h1>Good practices</h1>
</section>
<section>
<div class="flex small">
<div class="half">
<ul>
<li>Be specific</li>
<li class="fragment">Is your task measurable?</li>
<li class="fragment">Number your tasks</li>
<li class="fragment">Use Tamara's grammar</li>
<li class="fragment">Describe specific attributes used</li>
<li class="fragment">Don't think about the visuals</li>
</ul>
</div>
<div class="half small">
<ul>
<li class="fragment">T1: <strong>Summarize</strong> the stock market prices for the S&P 500 companies (Summarize, Distribution)</li>
<li class="fragment">T2: <strong>Identify</strong> the most profitable books for the last year (Identify, Features)</li>
<li class="fragment">T3: <strong>Compare</strong> the <strong>trends</strong> of COVID-19 deaths in the world (Compare, Trend)</li>
</ul>
</div>
</div>
</section>
<section class="full">
<h2>Abstraction examples:</h2>
<div class="flex tiny">
<div class="half">
<div>Policy makers in California want to test what counties had flattened the curve in the Covid 19 pandemic.</div><br>
<div class="fragment">T1. Compare the (shape of the curves of the) number of positive cases per day over time between counties <strong>(compare, trend/features)</strong></div>
</div>
<div class="half fragment">
<div>Economists want to classify what type of recession was generated by the Covid 19 pandemic in different countries</div><br>
<div class="fragment">T2. Compare the shape of the GDP over time per country <strong>(compare, trend/features)</strong></div>
</div>
</div>
</section>
<section>
<h2>Example insights</h2>
<div></div>
<div class="fragment">Santa Guerra County has been the best at flattening the curve in California, with a reduction of 37% of their expected deaths by June 15, 2020.</div><br>
<div class="fragment">T1. Compare the (shape of the curves of the) number of positive cases per day over time between counties <strong>(compare, trend/features)</strong></div>
</section>
<section>
<h2>Example insights</h2>
<ul class="small">
<li>Imagine what the visualization users could be able to discover</li>
<li class="fragment">Made up</li>
<li class="fragment">Include details (names and/or numbers)</li>
<li class="fragment">Are very specific</li>
<li class="fragment">Can be tested</li>
<li class="fragment">Can be led to action</li>
</ul>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="deriving">
<section>
<h1>Deriving new data</h1><img src="../shared_images/vad_book_alldiagrams/why_derive.png" alt="Why: Derive data">
</section>
<section><strong>Task: Summarize the trend of the trade balance (exports - imports)</strong><img src="../shared_images/vad_book_alldiagrams/why_derive_before.png" alt="Derive data before">
<div class="fragment small">Don't make the user compute it in their head.</div>
</section>
<section><strong>Task: Summarize the trend of the trade balance (exports - imports)</strong><img src="../shared_images/vad_book_alldiagrams/why_derive_after.png" alt="Derive data after">
<div>Instead, display the difference.</div>
</section>
<section>
<h2>When to derive data</h2>
<div class="flex">
<ul class="half small">
<li>Large data? <span class="fragment">👉 Aggregate</span></li>
<li class="fragment">Complex data? <span class="fragment">👉 Simplify</span></li>
<li class="fragment">Dimensionality reduction</li>
<li class="fragment">Network/tree analytics (clusters, centralities)</li>
<li class="fragment">Don't make the user think!</li>
</ul>
<div class="half"><img src="../shared_images/vad_book_alldiagrams/why_derive.png" alt="Why: Derive data"></div>
</div>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="whatWeLearned">
<section class="full">
<h2>What we learned</h2>
<ul class="small">
<li class="fragment">Abstracting the tasks (why)</li>
<li class="fragment">Define the verb of the task (action)</li>
<li class="fragment">Define the noun of the task (targets)</li>
<li class="fragment">Tasks good practices</li>
<li class="fragment">Deriving new data</li>
</ul>
</section>
<section>
<div><img src="../shared_images/UC_Berkeley_wordmark_cal_gold.png" alt="University Of California at Berkeley logo"></div>
</section>
</section>
<section id="practice">
<section>
<h1>Practice</h1>
</section>
</section>
<section>
<section>
<h1>Rendering</h1>
</section>
<section>
<h2>SVG</h2>
</section>
<section>
<h2>Canvas</h2>
</section>
<section>
<h2>WebGL?</h2>
</section>
</section>
<section id="d3">
<section>
<h1>Setting up D3</h1>
</section>
</section>
<section id="altair">
<section>
<h1>Setting up Altair</h1>
</section>
</section>
<section id="vega-lite">
<section>
<h1>Setting up Vega-lite</h1>
</section>
</section>
<section id="tableau">
<section>
<h1>Setting up Tableau</h1>
</section>
</section>
</div>
</div>
<script src="../js/reveal.js"></script>
<script src="../plugin/zoom/zoom.js"></script>
<script src="../plugin/notes/notes.js"></script>
<script src="../plugin/search/search.js"></script>
<script src="../plugin/markdown/markdown.js"></script>
<script src="../plugin/highlight/highlight.js"></script>
<script>
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
hash: true,
//- transition: "convex",
//- width: "90%",
//- height: "100%",
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
});
</script>
<script>
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");
ga("create", "UA-72531610-1", "auto");
ga("send", "pageview");
</script>
</body>
</html>