Skip to main content
100%

Task-7 Q2

✓ Published1🌍 Public
JJames Cruz
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of IMDb star ratings (1 to 5 stars) across seven movie genres, with each bar segment representing the percentage of ratings for that genre. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked segments, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the percentage x-axis. Interactive tooltips display exact percentages on mouseover, while the data is loaded from a CSV file and rendered as SVG with a custom color scheme.

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