Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

a4707d3d1ef74bcebc92f79b4f25d2c4

Activity6_Task2

0 stars1🌍 Public
SSatish Nallamadugu
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the impact of movie genre on IMDb rating distributions, showing the percentage of films within five rating bands across six genres. Hovering over any segment triggers a tooltip displaying the exact percentage value. The visualization uses d3.stack() to compute the stacked layout, d3.scaleBand for the categorical y-axis, d3.scaleLinear for the percentage x-axis, and d3.scaleOrdinal with a custom color palette. Data is loaded from a CSV file and rendered as SVG rectangles with mouse event listeners for interactivity.

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.