Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

f491a07c26aa451cbd2da46f1565725f

Activity6_Task2

0 stars1🌍 Public
Mmoulidomar@hotmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings across genres as a stacked horizontal bar chart, showing the proportion of ratings within five percentage brackets for categories like Documentary, Drama, and Comedy. It uses D3 v7 with SVG rendering, loading data from a local CSV file. The chart employs `d3.stack()` to create the stacked series, `d3.scaleBand` for the y-axis genres, and `d3.scaleLinear` for the x-axis percentages. Interactive tooltips appear on hover, displaying the exact rating percentage for each segment.

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.