Skip to main content
100%

Activity_Task2

✓ Published4🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the impact of movie genre on IMDb ratings, displaying the percentage distribution of ratings across five categories (below 5.0 to above 8.5) for six genres. Using D3.js v7, the chart employs `d3.stack()` to create stacked bars and `d3.scaleBand()` for the genre axis. Interactive tooltips provide precise percentages on hover, with data sourced from a CSV file. The SVG rendering uses `d3.axisBottom()` and `d3.axisLeft()` for axes, while mouseover events trigger opacity changes and detailed pop-ups.

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