activity6_task2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb ratings across six movie genres using a stacked horizontal bar chart. Each bar shows the proportion of films within five rating brackets, from "below 5.0" to "above 8.5," with a tooltip displaying the exact percentage on hover. The code uses D3 v7 with `d3.stack` for chart construction and `d3.scaleOrdinal` for color mapping. Data is loaded from a CSV file, rendered as SVG, and styled with external CSS.
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