Data, Ecology, Art

Code Blog

Animating Two-Axis Data

It’s easy to draw a line graph in spreadsheets or in Processing, but what if you have more data than fits on a screen? Well, you can animate the data along the axis with the most data. This example shows how to import .csv data from the loveley Met data repository on github and clean it up.
We then display the Acquisition Year of each object along the x-axis, and animate the whole thing by swapping data from the full record array into the “display array” with the lovely “arrayCopy“ function.

While we are at it, we sonify the data so we hear a ping each time a new year’s worth of acquisitions starts. Which year saw the most acquisitions?

Code and files are available here: Zip fle

Greg Niemeyer