Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6-Task2

Public visualization

Viewing a saved revision (read-only)

edbdf49f50e148e5a467a12b1099f796

Activity6-Task2

0 stars3🌍 Public
Mmeenam1106@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart shows the proportion of IMDb ratings within six movie genres, using percentages that sum to 1 for each genre. Hovering over a segment reveals the exact percentage for that rating band. The visualization uses D3 v7’s `d3.stack()` to build the stacked layout and `d3.scaleOrdinal` for color mapping, rendering to SVG. Tooltips are implemented with D3’s mouse event handlers, and data comes from a CSV file containing genre-level rating distributions.

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.