Skip to main content
100%

Loading Data - Haunted Places in US

✓ Published0🌍 Public
AAlexis Caira
Last edited Sep 4, 2025
Created on Sep 4, 2025
Forked from Loading Data

This example demonstrates how to load and parse a CSV dataset of haunted places in the US, displaying the raw data as JSON in a pre element. The visualization uses D3 v7's `csvParse` to parse the data, converting longitude and latitude strings to numbers. It fetches the `data.csv` file from the Shadowlands Haunted Places Index, initially showing "LOADING" until the fetch completes. The React-based app uses D3's `select` API to bind the container and update the display with `text(JSON.stringify(...))`.

AI-generated description

This data set comes from Data.World and scrapes from the Shadowlands Haunted Places Index for the US and cleans and geocodes the location.

https://data.world/timothyrenner/haunted-places/workspace/project-summary?agentid=timothyrenner&datasetid=haunted-places

Attributes include the following:

  • City: categorical
  • Country: categorical
  • Description: categorical nominal
  • Location: categorical
  • State: categorical
  • State_abbrev: categorical
  • Longitude: longitude coordinates
  • Latitude: longitude coordinates
  • City_longitude: longitude coordinates
  • City_latitude: longitude coordinates
MIT Licensed

Similar vizzes