Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

22c665bb359c4b4a98800d3e6eb82ac9

Activity6_Task2

0 stars0🌍 Public
Rrishithagovini99@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity6_Task2

This stacked bar chart shows the percentage of IMDb ratings within each movie genre, highlighting how rating distributions vary across Documentary, Drama, Comedy, Romance, Animation, and Action. Each genre’s horizontal bar is divided into five rating-level segments, with hover pop-ups displaying exact percentages. Built with d3.v7 and rendered as SVG, the visualization uses d3.stack() to compute stacked series, d3.scaleOrdinal for color encoding, d3.scaleBand for genres, and d3.scaleLinear for percentages. The data is loaded from a CSV file containing genre and rating-level proportions.

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.