activity6_tutorial2
✓ Published1🌍 Public
A stacked horizontal bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing a rating category from “below 5.0” to “above 8.5.” The chart reads proportions along a linear percentage axis, using d3.stack to compute layer offsets and d3.scaleOrdinal with distinct colors for each category. Interactive tooltips appear on mouseover via D3 event handlers, showing the exact percentage for a given genre and rating segment. The example imports D3 v7 from UNPKG and renders the visualization as SVG, with axes formatted using d3.axisBottom and d3.axisLeft.
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