Giter Club home page Giter Club logo

babyspikelivecoding's Introduction

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

babyspikelivecoding's People

Contributors

nbremer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.