INFORMATION VISUALIZATION Alvitta Ottley Washington University in - - PowerPoint PPT Presentation
INFORMATION VISUALIZATION Alvitta Ottley Washington University in - - PowerPoint PPT Presentation
CSE 557A | Sep 14, 2016 INFORMATION VISUALIZATION Alvitta Ottley Washington University in St. Louis CSE 557A: INFORMATION VISUALIZATION 1 Assignment 1: Bar and Line Chart Due: 09-28-2016, 11:59pm (midnight) In this assignment, you will be
CSE 557A: INFORMATION VISUALIZATION 1 Assignment 1: Bar and Line Chart Due: 09-28-2016, 11:59pm (midnight) In this assignment, you will be using Processing to draw a bar chart and a line chart. This is your first assignment with Processing and you will be learning the basics of Processing such as, handling mouse events, basic intersection detection, and keeping track of the state of the
- visualization. You will be required to display a visualization based on input data, and there
are a few concepts that you need to explore: (1) reading and parsing data; (2) mouse hovering for highlighting visual elements. Basic Requirements:
- 1. You will be given a simple comma delimited file (CSV) called “data.csv”. This file will have
the following properties:
- a. It has two columns, the first column contains categorical (ordinal) data, and the
second column contains quantitative data.
- b. The first row has labels for each column.
- c. There are around 10 rows of data.
- 2. In Processing, do the following:
- a. Parse the CSV file and read in the data
- b. The canvas should display the data in the CSV file as a bar chart as default. The bar
chart should display each data item as a bar. c. The axes need to be labeled using the labels from the first row of the CSV file. The X- axis should display the categorical data and the Y-axis should display the as “(Apple, 12)”, showing both x be “cut off”.
Due in 2 weeks
NO CLASS NEXT WEEK :(
Recap…
IN-CLASS EXERCISE: DRAW A BUTTON
- Draw a button (size and location unspecified)
- Choose a color for your button
- Choose some text to be placed on your button
- Clicking the button should change the color of your button. A subsequent click
should revert the color to the previous one.
- Clicking outside of the button should do nothing.
- Creativity encouraged!
JOHN’S BUTTON SOLUTION
IN-CLASS EXERCISE: BOUNCING BALL
- Draw a ball (size and initial location unspecified)
- Choose a color for your ball
- Your ball should appear to be bouncing (directionality and speed unspecified)
- Your ball should not leave the canvas while bouncing
- Creativity encouraged!
JOHN’S BOUNCING BALL SOLUTION
Today…
Data Types Data Mapping
QUESTION…
How do you design a data visualization?
WHAT IS A DATA VISUALIZATION?
- A mapping of data attributes to visual attributes
- What are data attributes?
- What are visual attributes?
DATA
DATA DEFINITION
- A typical dataset in visualization consists of n records
- (r1, r2, r3, … , rn)
- Each record ri consists of m (m >=1) observations or variables
- (v1, v2, v3, … , vm)
- A variable may be either independent or dependent
- Independent variable (iv) is not controlled or affected by another variable
- For example, time in a time-series dataset
- Dependent variable (dv) is affected by a variation in one or more associated
independent variables
- For example, temperature in a region
- Formal definition:
- ri = (iv1, iv2, iv3, … , ivmi , dv1, dv2, dv3, … , dvmd)
- where m = mi + md
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
linear data types include: textual documents, program source code, and alphabetical lists of names which are all organized in a sequential manner.
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996 Attribute
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996 Item
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996 Cell
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
real-world objects such as molecules, the human body, and buildings have items with volume and some potentially complex relationship with
- ther items.
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
time lines are widely used and vital enough for medical records, project management, or historical presentations to create a data type that is separate from 1-dimensional data.
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
4 or more dimensions
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
DATA TYPE TAXONOMY
- 1-D
- 2-D
- 3-D
- Temporal
- Multi-dimensional
- Tree
- Network
The Eyes Have It, Shneiderman 1996
IS THIS COMPLETE?
QUESTIONS RELATED TO THIS?
DATA ATTRIBUTES
BASIC DATA ATTRIBUTES
- Nominal
- Ordinal
- Scale / Quantitative
- Interval
- Ratio
Def: A set of not-ordered and non- numeric values For example:
- Categorical (finite) data
- {apple, orange, pear}
- {red, green, blue}
- Arbitrary (infinite) data
- {“1 Brookings Dr. St. Louis, MO”,
“45 Wall St. New York NY”, …}
- {“John Smith”, “Jane Doe”, …}
BASIC DATA ATTRIBUTES
- Nominal
- Ordinal
- Scale / Quantitative
- Interval
- Ratio
Def: A tuple (an ordered set) For example:
- Numeric
- <2, 4, 6, 8>
- Binary
- <0, 1>
- Non-numeric
- <G, PG, PG-13, R>
BASIC DATA ATTRIBUTES
- Nominal
- Ordinal
- Scale / Quantitative
- Interval
- Ratio
Def: A numeric range
- Interval
- Ordered numeric elements on a
scale that can be mathematically manipulated, but cannot be compared as ratios
- For example: date, current time
(Sept 14, 2010 cannot be described as a ratio of Jan 1, 2011)
- Ratio
- where there exists an “absolute
zero”
- For example: height, weight
BASIC DATA ATTRIBUTES (FORMAL)
- Nominal (N)
{…}
- Ordinal (O)
<…>
- Scale / Quantitative (Q)
[…]
- Q → O
- [0, 100] → <F, D, C, B, A>
- O → N
- <F, D, C, B, A> → {C, B, F, D, A}
- N → O (??)
- {John, Mike, Bob} → <Bob, John, Mike>
- {red, green, blue} → <blue, green, red>??
- O → Q (??)
- Hashing?
- Bob + John = ??
Readings in Information Visualization: Using Vision To Think. Card, Mackinglay, Schneiderman, 1999
OPERATIONS ON BASIC DATA ATTRIBUTES
- What are the operations that we can perform on these data types?
- Nominal (N)
- = and ≠
- Ordinal (O)
- >, <, ≥, ≤
- Scale / Quantitative (Q)
- everything else (+, -, *, /, etc.)