Skip to main content
100%

Activity8_Task2

✓ Published0🌍 Public
Zzoe.romo@att.net
Last edited Apr 8, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across six genres, using stacked horizontal bars to show the percentage of films falling into five rating categories from below 5.0 to above 8.5. The chart includes a color legend and interactive tooltips that display the exact percentage for each segment on hover, with bars dimming during mouseover. Built with D3 v7, it loads data from a local CSV file, uses `d3.stack()` to compute the stacked series, and renders as SVG with `d3.scaleOrdinal` for colors and `d3.scaleBand` for the categorical axis.

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