Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

5e812f6b3b304216b4318a0c183db9dc

Activity6_Task2

0 stars0🌍 Public
Vvankayalapatimounika2000@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity-6

This stacked bar chart shows the percentage distribution of IMDb rating levels within six movie genres, with hover tooltips revealing exact percentages. Each genre’s stacked bars represent five rating bands, from “below 5.0” to “above 8.5,” totaling 100%. The visualization uses D3 v7’s `d3.stack()` to compute stacked series, `d3.scaleOrdinal` for color mapping, and `d3.scaleLinear` and `d3.scaleBand` for axes. SVG rectangles render the bars, and mouse events trigger tooltip display with formatted percentages using `d3.format`. Data comes from a CSV file containing pre-aggregated genre ratings.

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.