Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

TASK-8

Public visualization

Viewing a saved revision (read-only)

00aaadcbcc234786a460b5c08d921658

TASK-8

0 stars0🌍 Public
Ppraneeth7222@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb rating categories across six video game genres, using percentages that sum to 100% for each genre. The D3.js v7 code builds the horizontal bars with `d3.stack()` and `d3.scaleOrdinal` for color mapping, while hover interactions trigger tooltips showing precise percentage values via `d3.format`. The SVG rendering includes a linear x-axis for percentages and a band scale for genres, with data loaded from a CSV file displaying five rating brackets from below 5.0 to above 8.5.

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.