Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

IMDb Movie ratings

Public visualization

Viewing a saved revision (read-only)

225f64a6991f4f39b76b6d62c23eb965

IMDb Movie ratings

0 stars0🌍 Public
Aaniteshterala2000
Last edited Jul 8, 2023
Created on Jul 8, 2023
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across six movie genres, breaking each genre’s percentage of films into five rating bands from below 5.0 to above 8.5. The visualization uses D3 v7’s `d3.stack()` to aggregate the percentage data, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the genres. Each bar segment is colored via `d3.scaleOrdinal`, and hovering reveals the exact percentage through a custom tooltip. The SVG chart loads data from a local CSV file and includes a legend for the rating categories.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.