Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

4ea2755345cc42d8aa2a36aca3d71b70

Activity6_Task2

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

This stacked bar chart shows the percentage distribution of five IMDb rating levels across six movie genres, demonstrating how genre influences audience ratings. The visualization uses a diverging color scheme to distinguish rating categories and includes hover tooltips that display exact percentages. The code employs D3 v7 with the `d3.stack()` method for data stacking, `d3.scaleOrdinal()` for color mapping, and `d3.scaleLinear()` with `d3.scaleBand()` for axes. Data is loaded from a CSV file and rendered as SVG rectangles within an HTML page.

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.