Stephanie Briones

Data Visualization and Infographics with D3

March 16th - April 26th, 2015 · Alberto Cairo & Scott Murray

Module 2

March 22 - 28, 2015

EXERCISE: Create a web page that includes one SVG image. Using D3, load your data into the page and log that data to the console. (This will not yet be a visualization; this is just evidence that the data is being loaded into the page and D3 is parsing it correctly.) View Code

Module 3 & 4

March 29 - April 4, 2015

EXERCISE (Module 3): Make a horizontal bar chart using your own data set. Bind your data to the rectangles, so each row of data is expressed as a single rectangle. Map any one quantitative (numeric) value in the data set to the width of each rectangle.

April 6 - April 12, 2015

EXERCISE (Module 4): Refine your bar chart from last week's exercise. Use scales to set the bar positions and heights dynamically, add axes, adjust the styling with CSS (paying attention to color and composition), and add a title and/or caption to provide context. Post the bl.ocks.org link to your working chart in the forums, and explain what the chart represents.

View Code

Commutes at 8th Light, Inc.

Results based on responses from 50 employees

Module 5

April 13 - April 19, 2015

EXERCISE: Take the vertical bar chart from last week's exercise, and rework it as a scatterplot. Choose a second quantitative value from your data set, and map it to the x axis. Replace the rectangles with circles, so dots appear at the x/y intersection of the two values. Make sure the axes correctly label the new values. Post the bl.ocks.org link to your working chart in the forums, and explain what the chart represents as well as your visual design decisions. View Code

Ice Cream Sales

The warmer it gets, the more ice cream is sold. Resource

Module 6

April 20 - April 26, 2015

EXERCISE: If your data set doesn't include date values, find a new data set that does. Create a line chart (or area chart) that represents time on the x axis, and quantitative values on the y axis. Include at least two values on the y axis, so viewers can examine the relationship between values that have changed over time. If using areas, consider changing the opacity or layering order, to make sure all values are visible. Make sure the axes correctly label the new values. Post the bl.ocks.org link to your working chart in the forums, and explain what the chart represents as well as your visual design decisions. View Code

Price of Fuel

Premium Unleaded fuel prices (pence per liter) from March 2014 to March 2015 for the UK, Denmark, and Germany. Resource

UK

Denmark

Germany