Father knitted a data viz blanket of his infant's sleep patterns

Seung Lee double knit this blanket based on data about his son's sleep patterns during his first year of life.

"Each stitch represents 6 minutes of time spent awake or asleep," Lee tweeted.

The blanket is 42" x 45," contains approximately 185,000 stitches and took around 300 hours to make. From Twitter:

The original plan was to crochet the entire blanket but I switched to double knitting because the data was much more clearly visualized and the color changes (of which there were literally thousands) were significantly easier..

The sleep data was collected with the BabyConnect app which lets you export to CSV. The CSVs were filtered and converted into JSON (using Google Apps Script and Python) which could then be used for visualization and tracking...

I built a tool in HTML/JavaScript so I could position stitch markers for the color changes and track overall progress. I made it browser based so I could pull it up on any device wherever I was...

(via Kottke)