Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

b86f339a7ad74f9e95c98ab2c446301e

Activity6_Task2

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

A stacked bar chart visualizes the percentage distribution of IMDb rating categories across six movie genres, showing how genres such as Documentary and Action differ in rating outcomes. Each bar segment represents a rating level, with hover interactions displaying exact percentages via a tooltip. The visualization uses D3 v7’s `d3.stack`, `scaleBand`, and `scaleLinear` APIs to generate SVG rectangles in a stacked layout, with data loaded from a CSV file. A color scale encodes the rating categories, and axes are rendered using `d3.axisBottom` and `d3.axisLeft`.

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.