Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

IMDB Movies (Top 1000) dataset

Public visualization

Viewing a saved revision (read-only)

01fd0facc0b5405fa98055bd6449b401

IMDB Movies (Top 1000) dataset

0 stars1🌍 Public
VVinayak Revankar
Last edited Sep 4, 2025
Created on Sep 4, 2025

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