Skip to main content
100%

Tutorial 2

✓ Published0🌍 Public
Jjtulasi05@gmail.com
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Hello VizHub

This example shows the distribution of IMDb ratings across six movie genres, breaking down each genre into five rating categories as stacked proportions. The chart uses d3.stack() to compute cumulative values and d3.scaleBand for the genres, with d3.scaleOrdinal mapping categories to colors. Hovering over a segment triggers a tooltip that displays the exact percentage, and the code relies on d3.axisBottom and d3.axisLeft for axes, with data loaded from a local CSV file.

AI-generated description
MIT Licensed

Similar vizzes