Skip to main content
100%

Activity6_Task 2

✓ Published0🌍 Public
Ppuneetputtu@my.unt.edu
Last edited Apr 1, 2025
Created on Apr 1, 2025

This example visualizes the distribution of movie ratings across six genres, showing the proportion of films in each rating range (below 5.0 to above 8.5) as stacked horizontal bars that sum to 100%. The code loads data from a CSV file and uses d3.stack with stackOffsetExpand to create normalized percentages, d3.scaleBand for the genre axis, and d3.scaleLinear for the percentage axis. Interactive tooltips display the exact genre, rating range, and percentage on mouseover, while a color-coded legend identifies each rating category. The visualization is rendered as animated SVG elements.

AI-generated description
MIT Licensed

Similar vizzes