Skip to main content
100%

Activity6_Task2

✓ Published2🌍 Public
Kkartheekgrpt@gmail.com
Last edited Oct 21, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of titles falling into one of five rating bins. The code loads data from a CSV file and uses D3 v7’s `d3.stack()` to generate the stacked series, `d3.scaleBand()` for genre categories, and `d3.scaleLinear()` for the percentage axis. Interactive tooltips display exact percentages on mouseover, while an ordinal color scale distinguishes rating ranges.

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