Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity8_Task2

Public visualization

Viewing a saved revision (read-only)

8d1f8b38e6b046c68ff90d6bc3e4eaea

Activity8_Task2

0 stars1🌍 Public
LLakshmi Keerthi
Last edited Apr 16, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

A stacked bar chart displays the percentage distribution of movie ratings across six genres, from documentary to action. Each bar represents a genre, with colored segments showing five rating ranges from below 5.0 to above 8.5. Hovering over a segment highlights it and reveals the exact percentage via a tooltip. The visualization uses d3.v7 with d3.stack, d3.scaleOrdinal, and d3.scaleBand, rendering as SVG from CSV data.

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.