Skip to main content
100%

Activity6_Task2_Answer

✓ Published0🌍 Public
Oorusushanth2002@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This visualization shows the distribution of movie ratings across different genres, using horizontally stacked bar charts to display the percentage of films falling into five rating categories from “below 5.0” to “above 8.5.” The chart employs a diverging color palette to distinguish each rating segment, with hover interactions revealing the precise percentage via a tooltip. Built with D3 v7, the code uses `d3.stack()` to compute the stacked data, `d3.scaleBand()` for the genre categories, and `d3.scaleLinear()` for the percentage axis. SVG rendering and ordinal color scaling complete the layout, with data loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes