Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

8b9d9194333848cfa88be4fc0216583a

Activity6_Task2

0 stars0🌍 Public
119n81a0581sunny@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar normalized to represent 100% of ratings within a genre across five rating brackets. The visualization uses d3.stack() to compute stacked segments and d3.scaleOrdinal for color encoding. Hovering over any segment triggers a tooltip displaying the precise percentage for that rating level using d3.format('.2f'). The SVG-based chart renders categorical genres on a band scale and percentages on a linear axis, with data sourced from a CSV file.

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.