Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Week 5: IMDB Top 250 Movies Bar Chart: Genre VS Count

Public visualization

Viewing a saved revision (read-only)

3d2d8abee0764eb5ba9498c51662c0d8

Week 5: IMDB Top 250 Movies Bar Chart: Genre VS Count

0 stars5🌍 Public
XXiaojun
Last edited Sep 24, 2025
Created on Sep 24, 2025

This bar chart visualizes the distribution of genres among IMDb’s Top 250 movies, showing how many films fall into each genre category. Using D3.js v7 within a React component, the code loads movie data from a CSV file, splits each movie’s comma-separated genre list, and counts occurrences to create the dataset. The chart employs scaleBand and scaleLinear for positioning, with bars colored via a linear color gradient from light to dark blue. The y-axis represents genre counts, while rotated labels on the x-axis identify each genre.

AI-generated description