Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data - Squirrel Census

Public visualization

Viewing a saved revision (read-only)

3837c415e0ce4359a2ee93cfd9664993

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