Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

977022564191428599f3c21797aa980f

Activity6_Task2

0 stars1🌍 Public
Sssuryateja804@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This stacked bar chart displays the percentage of IMDb rating levels across six movie genres, showing how rating distributions vary by genre. Each genre has a horizontal bar divided into five colored segments representing rating ranges from below 5.0 to above 8.5. The visualization uses d3.stack() to compute stacked segments, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Hovering over any segment triggers a tooltip displaying the exact percentage for that rating level within the selected genre, with data sourced from a CSV file and rendered as SVG.

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.