Skip to main content
100%

Tutorial2_Activity6

✓ Published1🌍 Public
SShiva Sai Reddy
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, with each bar segment representing the percentage of titles falling into one of five rating ranges. The visualization uses D3 v7’s `d3.stack()` to compute stacked series, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the percentage x-axis. Interactive tooltips appear on mouseover, displaying the exact percentage for each genre-rating combination. Data comes from a local CSV file, and the chart renders as SVG with a custom ordinal color scale.

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