🌍 Public
Viewing a saved revision (read-only)
3ac4d6e2a3f746dfb2160c85c47e7a1c
activity6_task2
A stacked bar chart displays the percentage of movie ratings across five genres, with each bar segmented by rating categories from below 5.0 to above 8.5. The chart uses d3.stack and d3.scaleOrdinal with a custom color palette to build the SVG visualization. Hovering over a segment triggers a tooltip showing the precise percentage for that rating level within the genre. The data originates from a CSV file loaded with d3.csv, and the axes use d3.axisLeft and d3.axisBottom with a linear scale for percentages and a band scale for genres.
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.