🌍 Public
Viewing a saved revision (read-only)
ff8ca549ed8c434cb7f0c139d0717efe
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 description