🌍 Public
Viewing a saved revision (read-only)
01fd0facc0b5405fa98055bd6449b401
IMDB Movies (Top 1000) dataset
This example loads the IMDB Movies (Top 1000) dataset from a CSV file and displays its raw contents as a formatted JSON preview. It demonstrates asynchronous data fetching with the Fetch API and parsing with `d3.csvParse`, converting string values into proper numeric types. The visualization uses D3 v7's `select` and data joins to render the state, first showing a loading status, then an error message if fetching fails, and finally the parsed movie records. The code follows a minimal state management pattern where a `setState` function triggers re-rendering of the container.
AI-generated description