Skip to main content
100%

IMDb Movie ratings

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

This example presents a stacked bar chart of IMDb movie ratings across six genres, with each bar showing the proportional distribution of ratings from below 5.0 to above 8.5. The visualization uses d3.stack() to compute the stacked segments and d3.scaleBand for the categorical genre axis, while d3.scaleOrdinal maps rating categories to a five-color palette. Interactive tooltips appear on mouseover via D3 event handlers. Data is loaded as CSV and rendered as SVG with axes generated by d3.axisLeft and d3.axisBottom.

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