Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data - Squirrel Census

Public visualization

Viewing a saved revision (read-only)

c0d7339f14644a2fb359b8e33545f3f4

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 UK's Natural History Museum websites and reflects data collected from their

https://data.nhm.ac.uk/dataset/earthworm-watch-participants/resource/5c696a36-98d1-4f31-be07-11c252fc9392