Skip to main content
100%

Stacked Bar Chart Assignemnt 2 Q2

✓ Published0🌍 Public
VVishnu Sudireddy
Last edited Jul 21, 2023
Created on Jul 10, 2023
Forked from D3 Starter

This stacked bar chart shows the distribution of movie ratings across six genres, with each bar segment representing the percentage of movies falling into one of five rating brackets (from "below 5.0" to "above 8.5"). The visualization uses D3.js v7 with an SVG rendering approach, employing `d3.stack()` to compute the stacked segments and `d3.scaleOrdinal()` for color encoding. A custom tooltip, built with HTML div elements, displays the exact percentage for each segment on mouseover, while the y-axis uses `d3.scaleBand()` for categorical genre labels. The data originates from a local CSV file.

AI-generated description
MIT Licensed

Similar vizzes