Skip to main content
100%

IMDb Movie ratings

✓ Published0🌍 Public
LLakshmanRangisetti
Last edited Jun 28, 2023
Created on Jun 28, 2023
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across genres using a stacked horizontal bar chart. Each bar represents a genre, broken into five rating categories from “below 5.0” to “above 8.5,” with lengths proportional to the percentage of movies in each category. The visualization uses D3 v7’s `d3.stack` and `d3.scaleOrdinal` with custom color assignments, rendered as inline SVG elements. Mouseover interactions trigger a tooltip displaying the exact percentage for each rating segment, while axes and legends are built with `d3.axisBottom` and `d3.axisLeft`.

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