Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task2

Public visualization

Viewing a saved revision (read-only)

c02b8a4adafc43498021eed0b84af184

Activity6_task2

0 stars0🌍 Public
RRJVENKATESH789@GMAIL.COM
Last edited Apr 12, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the percentage of IMDb rating levels across movie genres, revealing how genre influences audience ratings. Hovering over any bar segment displays a tooltip with the exact percentage for that rating category within the genre. The chart uses D3 v7’s `d3.stack()` to create stacked series, `d3.scaleBand()` for genre positioning, and `d3.scaleLinear()` for percentage values. Data is loaded from a CSV file and rendered as SVG rectangles with color-coded rating categories.

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.