Activity 6_Task 2
✓ Published1🌍 Public
This example visualizes IMDB movie ratings by genre, showing the distribution of ratings across five categories (from "below 5.0" to "above 8.5") as proportional horizontal bars. Using D3 v7, the code loads CSV data and employs `d3.stack()` to create stacked bar segments, with `d3.scaleOrdinal()` for color mapping and a tooltip that displays exact percentages on hover. The x-axis uses `d3.axisBottom()` with a linear scale, while the y-axis uses `d3.scaleBand()` for genre categories. The visualization is rendered as SVG with custom CSS styling for typography.
AI-generated descriptionMIT Licensed