Skip to main content
100%

Activity6_Task2

✓ Published1🌍 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.
MIT Licensed

Similar vizzes