Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

3cb33ad4a53a4e859eb0424efa313bd4

Activity6_Task2

0 stars0🌍 Public
Vvenkatamanikantavaddi@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

A stacked bar chart shows the percentage distribution of IMDb rating levels across six movie genres, with each genre represented by a horizontal bar divided into five rating categories. The visualization reveals how genres differ in their rating patterns, such as Documentaries having higher percentages of top ratings compared to Action films. Built with D3 v7, the chart uses `d3.stack()` to compute stacked segments, `d3.scaleBand()` for the y-axis genres, and `d3.scaleLinear()` for the percentage scale. Interactive tooltips display exact percentages on mouse hover using 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.