Skip to main content
100%

IMDb Movie ratings

✓ Published0🌍 Public
MmNamratha25
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across six film genres, with each bar divided into five rating brackets from “below 5.0” to “above 8.5.” The chart uses d3.stack() to compute the stacked segments, d3.scaleLinear and d3.scaleBand for positioning, and d3.scaleOrdinal with a custom color palette for the legend. Hovering over any segment triggers a tooltip displaying the exact percentage for that genre and rating range. Data loads from a local CSV file via d3.csv, and the SVG is rendered with axis labels and a titled legend.

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