Activity-6_Task-2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb ratings across movie genres using a stacked horizontal bar chart. It shows the proportion of films within six rating categories, from “below 5.0” to “above 8.5,” for genres like Documentary, Drama, and Action. The code uses d3.stack() to compute layered bar segments, with d3.scaleBand for genre positioning and d3.scaleLinear for percentages. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating segment. Data comes from a CSV file, rendered as SVG with D3 v7.
AI-generated descriptionMIT Licensed