Skip to content

Commit 5e8fad4

Browse files
committed
Refactor a bunch of old material
1 parent aaec65e commit 5e8fad4

10 files changed

+201
-282
lines changed

.gitmodules

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[submodule "reveal.js"]
22
path = reveal.js
3-
url = https://github.com/kanitw/reveal.js.git
4-
5-
3+
url = https://github.com/hakimel/reveal.js.git
4+
[submodule "highlight.js"]
5+
path = highlight.js
6+
url = https://github.com/isagalaev/highlight.js.git

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
d3-tutorials
2-
============
1+
# d3-tutorials
32

43
D3 Tutorials for CSE512 Data Visualization Course at University of Washington

d3-01.html

+22-28
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
1616

17-
<link rel="stylesheet" href="reveal.js/css/reveal.min.css">
18-
<link rel="stylesheet" href="reveal.js/css/theme/idl.css" id="theme">
17+
<link rel="stylesheet" href="reveal.js/css/reveal.css">
18+
<link rel="stylesheet" href="reveal.js/css/theme/black.css" id="theme">
19+
<link rel="stylesheet" href="style.css">
1920

2021
<!-- For syntax highlighting -->
21-
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
22-
<link rel="stylesheet" href="style.css">
22+
<link rel="stylesheet" href="highlight.js/src/styles/obsidian.css" id="highlight-theme">
2323

2424
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
2525
<script>
2626
document.write('<link rel="stylesheet" href="reveal.js/css/print/' + (window.location.search.match(/print-pdf/gi) ? 'pdf' : 'paper') + '.css" type="text/css" media="print">');
2727
</script>
2828

29-
<script src="jquery.js"></script>
29+
<script src="js/jquery.js"></script>
3030
<script src="js/d3.js"></script>
3131

3232
<script>
@@ -61,7 +61,7 @@ <h4>First Part</h4>
6161
<br/>
6262
<p>
6363
<small>
64-
by <a href="http://hakim.se">Kanit "Ham" Wongsuphasawat</a>
64+
A tutorial by <a href="http://homes.cs.washington.edu/~domoritz/">Dominik Moritz</a> (<a href="http://twitter.com/domoritz">@domoritz</a>) and <a href="http://kanitw.yellowpigz.com/">Kanit "Ham" Wongsuphasawat</a> (<a href="http://twitter.com/kanitw">@kanitw</a>)
6565
</small>
6666
</p>
6767
<p>
@@ -70,28 +70,20 @@ <h4>First Part</h4>
7070
<a href="http://uw.edu">University of Washington</a>
7171
</small>
7272
</p>
73-
<p>
74-
<small>
75-
<a href="http://twitter.com/kanitw">@kanitw</a>
76-
/
77-
<a href="http://kanitw.yellowpigz.com">kanitw.yellowpigz.com</a>
78-
</small>
79-
</p>
80-
<p><small><small>(Based on <a href="http://vadim.ogievetsky.com/IntroD3">Vadim Ogievetsky</a> and <a href="alignedleft.com/tutorials/d3/">Scott Murray</a>'s work)</small></small></p>
73+
<p><small><small>(Based on <a href="http://vadim.ogievetsky.com/IntroD3">Vadim Ogievetsky</a> and <a href="http://alignedleft.com/tutorials/d3/">Scott Murray</a>'s work)</small></small></p>
8174
</section>
8275
<section data-markdown>
83-
## Outline
84-
85-
* Examples
86-
* Selections & Data
87-
* Transitions
88-
* Nested Selections
89-
* Interactions
90-
* Scales & Axes
91-
* Tips e.g. Importing Data
92-
* Layouts & Maps
93-
* More Examples
94-
76+
## Outline
77+
78+
* Examples
79+
* Selections & Data
80+
* Transitions
81+
* Nested Selections
82+
* Interactions
83+
* Scales & Axes
84+
* Tips e.g. Importing Data
85+
* Layouts & Maps
86+
* More Examples
9587
</section>
9688
<section>
9789
<h3>Show Reels</h3>
@@ -492,7 +484,7 @@ <h3>"<a href="http://prcweb.co.uk/lab/selection/">Two Tables</a>"</h3>
492484
</div>
493485

494486
<script src="reveal.js/lib/js/head.min.js"></script>
495-
<script src="reveal.js/js/reveal.min.js"></script>
487+
<script src="reveal.js/js/reveal.js"></script>
496488

497489
<script>
498490
// Full list of configuration options available here:
@@ -502,9 +494,11 @@ <h3>"<a href="http://prcweb.co.uk/lab/selection/">Two Tables</a>"</h3>
502494
progress: true,
503495
history: true,
504496
center: true,
497+
slideNumber: true,
498+
transitionSpeed: 'fast',
505499

506500
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
507-
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
501+
transition: Reveal.getQueryHash().transition || 'slide', // default/cube/page/concave/zoom/linear/fade/none
508502

509503
// Parallax scrolling
510504
// parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',

d3-02.html

+37-48
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
1616

17-
<link rel="stylesheet" href="reveal.js/css/reveal.min.css">
18-
<link rel="stylesheet" href="reveal.js/css/theme/idl.css" id="theme">
17+
<link rel="stylesheet" href="reveal.js/css/reveal.css">
18+
<link rel="stylesheet" href="reveal.js/css/theme/black.css" id="theme">
19+
<link rel="stylesheet" href="style.css">
1920

2021
<!-- For syntax highlighting -->
21-
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
22-
<link rel="stylesheet" href="style.css">
22+
<link rel="stylesheet" href="highlight.js/src/styles/obsidian.css" id="highlight-theme">
2323

2424
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
2525
<script>
2626
document.write('<link rel="stylesheet" href="reveal.js/css/print/' + (window.location.search.match(/print-pdf/gi) ? 'pdf' : 'paper') + '.css" type="text/css" media="print">');
2727
</script>
2828

29-
<script src="jquery.js"></script>
29+
<script src="js/jquery.js"></script>
3030
<script src="js/d3.js"></script>
3131

3232
<script>
@@ -61,7 +61,7 @@ <h4>Second Part</h4>
6161
<br/>
6262
<p>
6363
<small>
64-
by <a href="http://hakim.se">Kanit "Ham" Wongsuphasawat</a>
64+
A tutorial by <a href="http://homes.cs.washington.edu/~domoritz/">Dominik Moritz</a> (<a href="http://twitter.com/domoritz">@domoritz</a>) and <a href="http://kanitw.yellowpigz.com/">Kanit "Ham" Wongsuphasawat</a> (<a href="http://twitter.com/kanitw">@kanitw</a>)
6565
</small>
6666
</p>
6767
<p>
@@ -70,14 +70,7 @@ <h4>Second Part</h4>
7070
<a href="http://uw.edu">University of Washington</a>
7171
</small>
7272
</p>
73-
<p>
74-
<small>
75-
<a href="http://twitter.com/kanitw">@kanitw</a>
76-
/
77-
<a href="http://kanitw.yellowpigz.com">kanitw.yellowpigz.com</a>
78-
</small>
79-
</p>
80-
<p><small><small>(Based on <a href="http://vadim.ogievetsky.com/IntroD3">Vadim Ogievetsky</a> and <a href="alignedleft.com/tutorials/d3/">Scott Murray</a>'s work)</small></small></p>
73+
<p><small><small>(Based on <a href="http://vadim.ogievetsky.com/IntroD3">Vadim Ogievetsky</a> and <a href="http://alignedleft.com/tutorials/d3/">Scott Murray</a>'s work)</small></small></p>
8174
</section>
8275
<section>
8376
<section>
@@ -278,26 +271,26 @@ <h3><a href="https://github.com/mbostock/d3/wiki/SVG-Axes">SVG Axes</a></h3>
278271
<p>See <a href="http://bl.ocks.org/mbostock/3885304">Bar Chart</a> example</p>
279272
</section>
280273
<section data-markdown>
281-
## [More SVG Axes](https://github.com/mbostock/d3/wiki/SVG-Axes)
274+
## [More SVG Axes](https://github.com/mbostock/d3/wiki/SVG-Axes)
282275

283-
[![6186172](http://bl.ocks.org/mbostock/raw/6186172/thumbnail.png)](http://bl.ocks.org/mbostock/6186172)
284-
[![5537697](http://bl.ocks.org/mbostock/raw/5537697/thumbnail.png)](http://bl.ocks.org/mbostock/5537697)
285-
[![4573883](http://bl.ocks.org/mbostock/raw/4573883/thumbnail.png)](http://bl.ocks.org/mbostock/4573883)
286-
[![4403522](http://bl.ocks.org/mbostock/raw/4403522/thumbnail.png)](http://bl.ocks.org/mbostock/4403522)
287-
[![4349486](http://bl.ocks.org/mbostock/raw/4349486/thumbnail.png)](http://bl.ocks.org/mbostock/4349486)
288-
[![3892919](http://bl.ocks.org/mbostock/raw/3892919/thumbnail.png)](http://bl.ocks.org/mbostock/3892919)
276+
[![6186172](http://bl.ocks.org/mbostock/raw/6186172/thumbnail.png)](http://bl.ocks.org/mbostock/6186172)
277+
[![5537697](http://bl.ocks.org/mbostock/raw/5537697/thumbnail.png)](http://bl.ocks.org/mbostock/5537697)
278+
[![4573883](http://bl.ocks.org/mbostock/raw/4573883/thumbnail.png)](http://bl.ocks.org/mbostock/4573883)
279+
[![4403522](http://bl.ocks.org/mbostock/raw/4403522/thumbnail.png)](http://bl.ocks.org/mbostock/4403522)
280+
[![4349486](http://bl.ocks.org/mbostock/raw/4349486/thumbnail.png)](http://bl.ocks.org/mbostock/4349486)
281+
[![3892919](http://bl.ocks.org/mbostock/raw/3892919/thumbnail.png)](http://bl.ocks.org/mbostock/3892919)
289282
</section>
290283
<section data-markdown>
291-
## [More SVG Axes](https://github.com/mbostock/d3/wiki/SVG-Axes)
284+
## [More SVG Axes](https://github.com/mbostock/d3/wiki/SVG-Axes)
292285

293-
[![3371592](http://bl.ocks.org/mbostock/raw/3371592/thumbnail.png)](http://bl.ocks.org/mbostock/3371592)
294-
[![3259783](http://bl.ocks.org/mbostock/raw/3259783/thumbnail.png)](http://bl.ocks.org/mbostock/3259783)
295-
[![3212294](http://bl.ocks.org/mbostock/raw/3212294/thumbnail.png)](http://bl.ocks.org/mbostock/3212294)
296-
[![2983699](http://bl.ocks.org/mbostock/raw/2983699/thumbnail.png)](http://bl.ocks.org/mbostock/2983699)
297-
[![2996766](http://bl.ocks.org/mbostock/raw/2996766/thumbnail.png)](http://bl.ocks.org/mbostock/2996766)
298-
[![2996785](http://bl.ocks.org/mbostock/raw/2996785/thumbnail.png)](http://bl.ocks.org/mbostock/2996785)
299-
[![1849162](http://bl.ocks.org/mbostock/raw/1849162/thumbnail.png)](http://bl.ocks.org/mbostock/1849162)
300-
[![4323929](http://bl.ocks.org/mbostock/raw/4323929/thumbnail.png)](http://bl.ocks.org/mbostock/4323929)
286+
[![3371592](http://bl.ocks.org/mbostock/raw/3371592/thumbnail.png)](http://bl.ocks.org/mbostock/3371592)
287+
[![3259783](http://bl.ocks.org/mbostock/raw/3259783/thumbnail.png)](http://bl.ocks.org/mbostock/3259783)
288+
[![3212294](http://bl.ocks.org/mbostock/raw/3212294/thumbnail.png)](http://bl.ocks.org/mbostock/3212294)
289+
[![2983699](http://bl.ocks.org/mbostock/raw/2983699/thumbnail.png)](http://bl.ocks.org/mbostock/2983699)
290+
[![2996766](http://bl.ocks.org/mbostock/raw/2996766/thumbnail.png)](http://bl.ocks.org/mbostock/2996766)
291+
[![2996785](http://bl.ocks.org/mbostock/raw/2996785/thumbnail.png)](http://bl.ocks.org/mbostock/2996785)
292+
[![1849162](http://bl.ocks.org/mbostock/raw/1849162/thumbnail.png)](http://bl.ocks.org/mbostock/1849162)
293+
[![4323929](http://bl.ocks.org/mbostock/raw/4323929/thumbnail.png)](http://bl.ocks.org/mbostock/4323929)
301294
</section>
302295
</section>
303296
<section>
@@ -423,12 +416,12 @@ <h3>importing data</h3>
423416
<h2>Useful Tips</h2>
424417
</section>
425418
<section data-markdown>
426-
### Useful Helpers
419+
### Useful Helpers
427420

428-
* `max()`, `min()`, `range()`, `extent()`, `mean()`, `median()`
429-
* `keys()`, `values()`
430-
* [Arrays](https://github.com/mbostock/d3/wiki/Arrays) – Learn to use Javascript built-in + D3's [Arrays Helpers](https://github.com/mbostock/d3/wiki/Arrays)!
431-
* [SVG Helpers](https://github.com/mbostock/d3/wiki/SVG) e.g. `d3.svg.area()`
421+
* `max()`, `min()`, `range()`, `extent()`, `mean()`, `median()`
422+
* `keys()`, `values()`
423+
* [Arrays](https://github.com/mbostock/d3/wiki/Arrays) – Learn to use Javascript built-in + D3's [Arrays Helpers](https://github.com/mbostock/d3/wiki/Arrays)!
424+
* [SVG Helpers](https://github.com/mbostock/d3/wiki/SVG) e.g. `d3.svg.area()`
432425
</section>
433426
<section>
434427
<h3>Reusable d3.</h3>
@@ -466,25 +459,19 @@ <h3>Focus + Context Brush</h3>
466459
<footer class="source"><small>Source: http://bl.ocks.org/mbostock/1667367</small></footer>
467460
</section> -->
468461
<section data-markdown>
469-
### More Examples
470-
* https://github.com/mbostock/d3/wiki/Gallery
471-
* http://mbostock.github.io/d3/talk/20111018/
472-
* http://bost.ocks.org/mike/map/
473-
* http://christopheviau.com/d3list/gallery.html
462+
### More Examples
463+
* https://github.com/mbostock/d3/wiki/Gallery
464+
* http://mbostock.github.io/d3/talk/20111018/
465+
* http://bost.ocks.org/mike/map/
466+
* http://christopheviau.com/d3list/gallery.html
474467
</section>
475468
</section>
476-
477-
<section>
478-
<h1>Q&A</h1>
479-
480-
<p><small>Acknowledgement: This tutorial borrows some contents from Mike Bostock, Vadim Ogievetsky, Scott Murray and Jerome Cukier.</small></p>
481-
</section>
482469
</div>
483470

484471
</div>
485472

486473
<script src="reveal.js/lib/js/head.min.js"></script>
487-
<script src="reveal.js/js/reveal.min.js"></script>
474+
<script src="reveal.js/js/reveal.js"></script>
488475

489476
<script>
490477
// Full list of configuration options available here:
@@ -494,9 +481,11 @@ <h1>Q&A</h1>
494481
progress: true,
495482
history: true,
496483
center: true,
484+
slideNumber: true,
485+
transitionSpeed: 'fast',
497486

498487
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
499-
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
488+
transition: Reveal.getQueryHash().transition || 'slide', // default/cube/page/concave/zoom/linear/fade/none
500489

501490
// Parallax scrolling
502491
// parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',

0 commit comments

Comments
 (0)