🌍 Public
Viewing a saved revision (read-only)
c8a5bd91798944c6a813bedd69d99c94
Loading Data - Haunted Places in US
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 descriptionAttributes include the following:
-city,country,description,location,state,state_abbrev,longitude,latitude,city_longitude,city_latitude