D3: Data Binding and SVG Manipulation

Robin Bonatesta
The Diary of HacKSU
1 min readFeb 12, 2015

This week we went over D3, a data visualization library. We first did some cool data binding, and then some animations using SVGs, or Scalable Vector Graphics. Below are the two files we worked with, commented heavily with explanations. Copy and paste these into your text editors to see what they do.

Also, see on http://github.com/hacksu/d3.

In the gist below, the first file is the data binding example, where we dynamically said hi to some people in the room. The second file is the SVG creation and manipulation, where we dynamically create an SVG circle and then animate it.

If you have any questions or edits, email us at hacksu@cs.kent.edu.

--

--

Robin Bonatesta
The Diary of HacKSU

Full Stack Developer @ Cladwell. University Innovation Fellow, Venture For America Fellow, serial hackathon organizer.