Skip to content

The code from my Live Coding talk in which I recreate the Baby Spike visual I made for the Scientific American magazine

Notifications You must be signed in to change notification settings

nbremer/babyspikelivecoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baby Spike | Live Coding Talk

Here you can find all of the code, separated out into the different steps, that I go through during my live-coding talk. During this talk I recreate one of the three circular visualizations that is part of the "Baby Spike" visualization that me and Zan Armstrong created for the July 2017 issue of the Scientific American.

Minutes per day

Data

Holds the csv file with the number of babies born per minute, on average in the US in 2014 (source: Centers for Disease Control and Prevention). The line variable in the dataset is a loess line I precalculated in R based on the baby data, to use for the red and blue areas in the chart.

JS

This folder holds the JavaScript for all of the intermediate (& final) steps. You can use steps.md to see what each number of the file adds on top of the steps that came before.

Links

Here are the links that I show during the talk, to explain smaller concepts, such as the margin convention, d3's scales, radial lines and areas or how to place text along an arc. I've numbered them to follow the order in which I go through them during the talk.

Plugins

To be able to give the talk even without internet, I've downloaded the 2 JavaScript libraries that this talk needs: d3.v5 & d3-annotation. The latter being an extremely useful d3 plugin to create annotations around charts (a very and often forgotten thing to do!), created by Susie Lu.

Links to the final published result

  • See the end result as it appeared in the Scientific American magazine
  • Read Zan's blog on the Scientific American for deeper analysis about the trends in the births of babies
  • And here you can find Zan's & my write-up for those that want to know exactly how we came up with the idea, design and the creation process

About

The code from my Live Coding talk in which I recreate the Baby Spike visual I made for the Scientific American magazine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published