1 of 68

1

Data Visualization

for

Architecture,

Urbanism,

and the Humanities

ARCH A4892 Spring 2019 Week 3: Graphic Forms and More Programming

2 of 68

2

Last Time

  1. Visualization References
  2. Public data
  3. Technology foundamentals
  4. Programming

Today

  1. Quick Introduction to Charts
  2. Color
  3. Programming and drawing with data in javascript
  4. Project 1 Discussions

3 of 68

3

The most

Basic Chart Types

Bar Pie ScatterPlot Line

4 of 68

4

Scale of Graphical Perceptual Tasks

Human Subject Testing on percpetion of graphical elements

Formalization of Graphical Language

5 of 68

5

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

Volume

Shade and satuation

Color and Hue

Precise Comparisons

General Comparisons

Scale of Graphical Perceptual Tasks

6 of 68

6

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

Volume

Shade and satuation

Color and Hue

Precise Comparisons

General Comparisons

Scale of Graphical Perceptual Tasks

We will talk about color after

7 of 68

7

Bar

Chart Variations

done in d3

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

8 of 68

8

Bar

Chart Variations

done in d3 and historical

Diverging Values

Diverging Categories

9 of 68

9

Bar

Chart Variations

done in d3

10 of 68

10

Pie

Chart Variations

done in d3

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

11 of 68

11

Pie?

Exceptions

Category Quantity

Pie color degree

Nightingale equal slices radii

Bar bar height

(verical)

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

12 of 68

12

“There’s a strand of the data viz world that argues that everything could be a bar chart. That’s possibly true but also possibly a world without joy.”

13 of 68

13

Pie?

Exceptions

Category - color/ring

Time - Angle

Duration - length of arch

14 of 68

14

Line

Chart Variations

done in d3

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

15 of 68

15

Line

Chart Variations

done in d3 and in history

16 of 68

16

Scatter Plot

Chart Variations

your homework

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

17 of 68

17

Scatter Plot

Chart Variations

Done in ?

Size of circle - population

Y - life expectency

X - income

Color - continent

18 of 68

18

Scatter Plot

Chart Variations

done in d3

19 of 68

19

(Small) Multiples

Chart Variations

done in d3

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

20 of 68

20

(Small) Multiples

Chart Variations

done in d3

21 of 68

21

Position along common scale

Position along identical nonaligned scales

Length

Direction and Angle

Area

Volume

Shade and satuation

Color and Hue

Precise Comparisons

General Comparisons

Scale of Graphical Perceptual Tasks

22 of 68

22

Other: Bubble

Chart Variations

done in d3 in NYT

  • Position along common scale
  • Position along identical nonaligned scales
  • Length
  • Direction and Angle
  • Area
  • Volume
  • Shade and satuation
  • Color and Hue

23 of 68

23

Other: Heat

Chart Variations

done in d3

  • Position along common scale
  • Position along identical nonaligned scales
  • Length
  • Direction and Angle
  • Area
  • Volume
  • Shade and satuation
  • Color and Hue

24 of 68

24

Chart

Graph

25 of 68

25

Relationships

Chart Variations

done in d3

26 of 68

26

Hierarchy

Chart Variations

done in d3

27 of 68

27

In this class:

Maps are charts and graphs with geospatial dimensions

28 of 68

28

Choropleth

29 of 68

29

Choropleth

Matrix

30 of 68

30

Proportional Symbol

31 of 68

31

Proportional Symbol

Bar chart

32 of 68

32

Proportional Symbol

33 of 68

33

Proportional Symbol

Scatter Plot

34 of 68

34

Flow Map

35 of 68

35

Flow Map

Sankey

36 of 68

36

Flow Map

Chord

37 of 68

37

38 of 68

38

Set Mood

Draw Attention

Colors

39 of 68

39

40 of 68

40

41 of 68

41

Peach in different cultures

Color according to “girl” and “guy”

42 of 68

42

Color space

More XKCD survey results

43 of 68

43

Interaction of color

https://albersfoundation.org

44 of 68

44

45 of 68

45

Color Spaces

46 of 68

46

RGB

3 numbers, each range from 0 to 255

Red Green Blue

Black 0 0 0

White 255 255 255

Red 255 0 0

Green 0 255 0

Blue 0 0 255

47 of 68

47

48 of 68

48

RGB

3 numbers, each range from 0 to 255

Red Green Blue

Black 0 0 0

White 255 255 255

Red 255 0 0

Green 0 255 0

Blue 0 0 255

49 of 68

49

RGB

Red Green Blue

Black 0 0 0

White 255 255 255

Red 255 0 0

Green 0 255 0

Blue 0 0 255

Hex Triplet - hexcode

6 digits

Each digit can range from 0 to F (16 possible values)

0 1 2 3 4 5 6 7 8 9 A B C D E F

Black #000000

White #FFFFFF

Red #FF0000

Green #00FF00

Blue #0000FF

We count in decimal = base 10

Binary = base 2

Hex = base 16

50 of 68

50

http://hextodecimal.com/index.php

FF == 255

51 of 68

51

RGB

In CSS

color: rgb(0,0,0);

With transparency

color: rgba(0,0,0,0);

Hex Triplet - hexcode

color: #000000;

color:#00000000

52 of 68

52

Where to look for colors?

53 of 68

53

54 of 68

54

55 of 68

55

56 of 68

56

57 of 68

57

http://tools.medialab.sciences-po.fr/iwanthue/

58 of 68

58

59 of 68

59

In class:

HOMEWORK OUTPUT

60 of 68

60

61 of 68

61

In groups

  1. Introduce yourselves

  • Talk about your data

  • Write down notes about your partner’s project

62 of 68

62

In files in courseworks

63 of 68

63

64 of 68

64

65 of 68

65

For Next Week

  • Chapter 6 drawing with data - and make 2 changes!
  • Submit Project 1 Check in document

you will get feedback before you post your final version

  • Narrative Visualization
  • Understanding Comics

Next Week

  • Narratives and Storytelling

66 of 68

66

67 of 68

67

68 of 68

68

Taxonomy of Data

1 dimension

2 dimensions

3 dimensions

Multi-dimensional

Temporal

Tree

Network

https://www.cs.umd.edu/~ben/papers/Shneiderman1996eyes.pdf

Taxonomy of Tasks

Overview: Gain an overview of the entire collection.

Zoom : Zoom in on items of interest Filter: filter out uninteresting items.

Details-on-demand: Select an item or group and get

Relate: View relations hips among items.

History: Keep a history of actions to support undo

Extract: Allow extraction of sub-collections and of the details when needed. replay, and progressive refinement. query parameters.