Loading Data - Haunted Places in US
✓ Published0🌍 Public
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 descriptionThis data set comes from Data.World and scrapes from the Shadowlands Haunted Places Index for the US and cleans and geocodes the location.
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