Skip to main content
100%

Fork of q2

✓ Published0🌍 Public
Rrushithareddyy
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This visualization shows the distribution of movie ratings across six genres using a horizontal stacked bar chart. Each genre’s bar is divided into five rating categories, from below 5.0 to above 8.5, with segment lengths proportional to the percentage of movies in that category. The chart uses d3.stack to compute the stacked segments, d3.scaleLinear for positioning, and d3.scaleBand for genre spacing. SVG rectangles render the bars, with hover tooltips revealing exact percentages via mouse events. The data comes from a CSV file, and colors are assigned via d3.scaleOrdinal.

AI-generated description
MIT Licensed

Similar vizzes