🌍 Public
Viewing a saved revision (read-only)
2221c3ae00534ae48804482779cc1c1a
Activity6_Task2
This example shows the distribution of IMDb movie ratings across six genres, with horizontal stacked bars dividing each genre into five rating categories from “below 5.0” to “above 8.5.” The chart includes a color-coded legend, axes, and an interactive tooltip that displays the exact percentage for a hovered segment. The visualization uses D3 v7 with stacked bar layout via `d3.stack()`, scales from `d3.scaleLinear` and `d3.scaleBand`, and an ordinal color scale. Data is loaded from a CSV file and rendered as SVG elements.
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.