Skip to main content
100%

Activity6_task2

✓ Published0🌍 Public
Aazeemrm630@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the percentage share within five rating bands from below 5.0 to above 8.5. Using D3 v7 with SVG rendering, the visualization loads data from a local CSV file and applies d3.stack() with a d3.scaleBand for genres and d3.scaleLinear for percentages. Each bar segment displays a distinct color from a custom ordinal scale, and interactive mouseover events trigger a tooltip revealing the exact percentage for each genre-rating pair.

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