Loading Disney+ Data
This example demonstrates the process of loading a Disney+ dataset containing information about all TV shows and movies on the platform, displaying the raw parsed data as JSON in a `<pre>` element. The visualization initially shows a "LOADING" state before fetching the CSV from a GitHub gist using the `fetch` API, then parses it with D3's `csvParse` function. The code uses D3 v7's `select` and `join` operations to update the display, and the dataset includes fields such as title, director, cast, country, release year, rating, and duration.
AI-generated descriptionLoading Disney+ dataset that has information about all TV Shows/Movies currently offered on the platform.
(Dataset from: https://www.kaggle.com/datasets/shivamb/disney-movies-and-tv-shows)
Column Description/Data Types
show_id: unique id that is connected to each tv show/movie (Ordinal)
type: indicates wether media is a movie or tv show (Categorical)
title: name of the movie/show (Categorical)
director: director(s) of the given movie/show (Categorical)
cast: main cast of the movie/show (Categorical)
country: country where media was produced (Categorical)
date_added: date that media was added to Disney+ (Quantitative)
release_year: orginal release year of the movie/show (Quantitative)
rating: rating of the movie/show (PG, PG-13, etc.) (Categorical)
duration: total duration of movie/show (either min or seasons) (Quantitative)