🌍 Public
Viewing a saved revision (read-only)
4d0278a75700402ea81d71cc7b8f9017
Activity 6 Tutorial 2
This stacked horizontal bar chart displays the distribution of IMDb movie ratings across six genres, showing the proportion of titles falling into five rating brackets from "below 5.0" to "above 8.5." The chart uses d3.stack to create the stacked segments and d3.scaleOrdinal for color encoding. Interactive tooltips appear on mouseover via D3 event handlers, displaying the exact percentage for each genre-rating combination. The SVG output is generated using the d3.js library (v7) with data loaded from a CSV file, and the chart includes axis labels and a title rendered with custom fonts.
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.