Skip to main content
100%

Activity6_Task2 Q2.1

✓ Published0🌍 Public
Mmoulidomar@hotmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity6_Task2

A stacked horizontal bar chart displays the percentage of IMDb movie ratings across six genres, with five rating bands from "below 5.0" to "above 8.5." Each genre’s bar segments are color-coded by rating category, and hovering over a segment reveals its exact percentage via a tooltip. The visualization is built with D3 v7, using `d3.stack()` to compute the stacked data, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()` for genre positioning on the y-axis. Data is loaded 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.
MIT Licensed

Similar vizzes