Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task 2

Public visualization

Viewing a saved revision (read-only)

a3e00075a5544c93b887d31731ec6a4e

Activity6_Task 2

0 stars0🌍 Public
SSiddhartha Alwala
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A stacked bar chart shows how IMDb movie ratings are distributed across six genres, with each bar segmented into five rating bands from "below 5.0" to "above 8.5" as proportions summing to 1. The visualization highlights that documentaries skew toward higher ratings while action films concentrate in the lowest band. Built with D3 v7, the chart uses `d3.stack()` to compute the stacked segments and `d3.scaleOrdinal` for color encoding. Interactive tooltips display the precise percentage for each rating segment on mouseover. Data comes from the embedded `data.csv` file, rendered as SVG.

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.