🌍 Public
Fork of Activity6_Task2_Question 2-3
This stacked bar chart visualizes IMDb movie ratings across six genres, showing the percentage distribution of ratings within five score ranges (below 5.0 to above 8.5). The chart uses a horizontal layout with genres on the y-axis and percentage on the x-axis, employing d3.stack() to create stacked segments and d3.scaleOrdinal() for color encoding. Interactive tooltips display exact percentages on mouse hover, implemented through D3 event handlers. Data comes from a CSV file with pre-calculated proportions per genre. The visualization is rendered as SVG using D3 v7.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.