Skip to main content
100%

Activity8_Task2_DV_LB

✓ Published0🌍 Public
Llikithabaddam@my.unt.edu
Last edited Apr 14, 2024
Created on Apr 14, 2024

This stacked bar chart compares the distribution of movie ratings across six genres, showing the percentage of films falling into five rating brackets from “below 5.0” to “above 8.5.” Each genre’s bar is segmented by rating level, colored via a categorical scale, with tooltips revealing exact percentages on hover. Built with D3 v7, the visualization uses `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` to construct the chart, reading data from a CSV file and rendering into an SVG canvas.

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.

MIT Licensed

Similar vizzes