Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

86f7a853d5f54d9fb9ed66d15ffc5c75

Activity6_Task2

0 stars1🌍 Public
Ssuchigeneralpur@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

A stacked bar chart shows the percentage distribution of five IMDb rating levels across six movie genres, with each bar segment colored by rating category. D3 v7 builds the visualization using `d3.stack()` for data stacking, `d3.scaleLinear` and `d3.scaleBand` for axes, and `d3.scaleOrdinal` for colors. Hovering over a segment reveals a tooltip displaying the precise percentage for that genre and rating level, while the SVG renders the chart with horizontal bars and labeled axes.

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.