Skip to main content
100%

Activity-6 Task-2

✓ Published0🌍 Public
KKavyaEti
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, showing the percentage of titles falling into five rating bands from below 5.0 to above 8.5. The visualization uses D3 v7 to load CSV data and render an SVG, with `d3.stack()` for data transformation, `d3.scaleOrdinal` for color encoding, and `d3.scaleBand` for the categorical y-axis. Interactive tooltips display exact percentages on hover, implemented through D3 event handlers.

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