Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6_Task-2

Public visualization

Viewing a saved revision (read-only)

890f6ff1f30c47b1969375f189d244d8

Activity-6_Task-2

0 stars1🌍 Public
Aabdul.khader2899@gmail.com
Last edited Apr 6, 2024
Created on Apr 4, 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 proportion of films falling into one of five rating brackets (e.g., below 5.0, 5.0–6.5). The chart uses `d3.stack` to compute cumulative segment positions, with `d3.scaleBand` for the genre axis and `d3.scaleLinear` for the percentage axis. Interactive tooltips, implemented via mouseover events, display the exact percentage for each segment. SVG rendering is employed, and the data is sourced from a CSV file.

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.