Skip to main content
100%

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

✓ Published0🌍 Public
XXiaojun
Last edited Sep 29, 2025
Created on Sep 29, 2025

This bar chart shows the distribution of genres among IMDb’s Top 250 movies, tallying how many films fall into each genre category. The visualization uses a React frontend with D3 v7’s `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` to render the bars and axes, applying a Seaborn-inspired color palette to distinguish genres. Data is loaded from a CSV file and processed with a custom `countGenres` utility, with bars sorted by count in descending order.

AI-generated description

IMDb Top 250 Movies Genre Distribution

This visualization shows the distribution of genres among the IMDb Top 250 movies. It uses the Seaborn color palette for styling.

Implementation Details

  • Built with React and D3.js
  • Uses the deep variant of the Seaborn color palette:
    • Blue: #4C72B0
    • Green: #55A868
    • Red: #C44E52
    • Purple: #8172B2
    • Yellow: #CCB974
    • Cyan: #64B5CD

How to Run

  1. Serve the files using a local server (e.g., npx serve or python -m http.server)
  2. Open index.html in your browser
MIT Licensed

Similar vizzes