Skip to main content
100%

act 6 t2

✓ Published0🌍 Public
Sshravan.s0710@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart visualizes IMDb movie ratings across six genres, showing the percentage distribution within five rating brackets from below 5.0 to above 8.5. The chart uses `d3.stack()` to generate stacked series from the CSV data, `d3.scaleBand()` for the genre categories, and `d3.scaleLinear()` for the percentage axis. Each bar segment is colored using `d3.scaleOrdinal` with a custom palette. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating category, while the SVG rendering includes axes, gridlines, and a title.

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