Activity6_Task2
✓ Published2🌍 Public
This stacked bar chart shows the distribution of IMDb ratings across genres, with each bar divided into five rating categories from "below 5.0" to "above 8.5" expressed as percentages. The chart is rendered as SVG using D3 v7, with data loaded from a CSV file. It employs d3.stack() to create the stacked layout, d3.scaleBand() for the genre axis, d3.scaleLinear() for percentages, and d3.scaleOrdinal() with a custom color palette. Interactive tooltips display the exact percentage for each rating segment on hover.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed