Skip to main content
100%

Activity 6_Task 2

✓ Published2🌍 Public
SSeema Shrestha
Last edited Apr 10, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of IMDb ratings across six movie genres, with each bar representing a genre and segments colored by rating level from “below 5.0” to “above 8.5.” Hovering over a segment displays its exact percentage in a tooltip. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleOrdinal()` to construct the bars, while `d3.axisBottom` and `d3.axisLeft` render the scales. Data comes from a local CSV file, and the chart is rendered as SVG with interactive mouse events for highlighting and tooltip display.

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