Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data - Squirrel Census

Public visualization

Viewing a saved revision (read-only)

6a7ff61798a14199b71af983c8836b99

Loading Data - Squirrel Census

0 stars0🌍 Public
AAlexis Caira
Last edited Sep 4, 2025
Created on Sep 3, 2025
Forked from Loading Data

This example demonstrates the process of loading and parsing a CSV dataset from the Squirrel Census, which contains 433 squirrel sightings across 24 New York City parks. The visualization initially displays a loading state before fetching the data file, then renders the parsed data as a pretty-printed JSON object. The code uses d3.csvParse to convert the CSV string into an array of objects, and then converts specific fields like park_id, above_ground, squirrel_latitude, and squirrel_longitude to numeric values using the unary plus operator. The visualization is built with D3.js version 7.6.1, using the select and join methods to manage the DOM structure.

AI-generated description

This data is from The Squirrel Census and reflects data collected about squirrel sightings across 24 parks in New York City on March 4th, 2022. It was ran by 72 volunteers and NYC Open Data. There are 433 sightings counted.

The paper can be read here and is a fun read: https://www.thesquirrelcensus.com/data

Attributes include the following: Area name: categorical (sections of NY) Area ID: quantitative Park name: categorical Park ID: quantitative (numbered to represent a place) Squirrel ID: quantitative Primary fur color: categorical Highlights fur color: categorical Color notes: categorical Location: categorical Above Ground: quantitative Activities: categorical Interactions with humans: categorical Squirrel lat: latitude coordinates (DD.DDDDDD format) Squirrel long: longtude coordinate (-DD.DDDDDD format)