Skip to main content
100%

IMDb Movie ratings

✓ Published0🌍 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.
MIT Licensed

Similar vizzes