Skip to main content
100%

T2_Jaynica Nunna

✓ Published0🌍 Public
Nnunnajaynica@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from T2_Jaynica Nunna

A stacked bar chart displays the percentage distribution of IMDb movie ratings across six genres, using five rating brackets from "below 5.0" to "above 8.5." The chart reads percentage data from a CSV file, with each genre represented by a horizontal bar divided into colored segments. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked series, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()` for the genre axis. Interactive tooltips appear on hover, showing the exact percentage for each rating category, rendered as SVG elements.

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