Top Banner
Data and data visualization
15

Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Jun 06, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Data and data visualization

Page 2: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Data formats• Data can come packaged in many structures and

formats!

• Some of the most common:

• CSV (Comma Separated Values)

• JSON (JavaScript Object Notation)

• XML (eXtensible Markup Language)

Page 3: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

CSV (Comma Separated Values)

• Commonly exported from spreadsheets and table-type documents

• Treated as a table

Page 4: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

XML

Page 5: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

JSON

• “JavaScript Object Notation”

• Friendly to work with in JavaScript because the structure uses standard JS object and array formatting for access

Page 6: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

JSON Structure

Page 7: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

JSON Structure

Page 8: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

JSON Structure

Page 9: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

JSON Structure

Page 10: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Loading JSON data

Page 11: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Accessing object properties

Page 12: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Using object properties

Page 13: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Loading from URL

Page 14: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Steps for working with data

• Find a data source! Here’s a good resource, there are many options: https://github.com/toddmotto/public-apis

• Format the data and understand its structure

• Look through the data and find the most relevant information: name, format, organization

Page 15: Data and data visualization - Caitlin Morris · Exercise • Find a data set that’s interesting to you and identify its structure and key properties • Create a graph visualization

Exercise

• Find a data set that’s interesting to you and identify its structure and key properties

• Create a graph visualization using data from that set. This can be either a static graph (bar, line, circle), or something dynamic and animated.