Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6 Task-2

Public visualization

Viewing a saved revision (read-only)

2083950258cd46c4ad4845ad8228742c

Activity-6 Task-2

0 stars0🌍 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.