Skip to main content
100%

Activity8_Task2_DV_LB

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

This stacked bar chart illustrates the distribution of movie ratings across six genres, showing the proportion of films falling into five rating brackets from “below 5.0” to “above 8.5.” The visualization uses D3.js (v7) and renders as an SVG, with genres on the y-axis and percentage on the x-axis. Hovering over any segment reveals a tooltip displaying the exact percentage for that rating category within the genre. The chart uses `d3.stack()` for the stacked bars, `d3.scaleLinear()` for the x-axis, and `d3.scaleBand()` for the y-axis. Data comes from the provided CSV file.

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