activity6_q2
✓ Published0🌍 Public
This example shows stacked horizontal bars comparing the percentages of IMDb movie ratings across different genres, with each bar segment representing a rating range from "below 5.0" to "above 8.5". It uses D3 v7's `d3.stack`, `d3.scaleOrdinal`, `d3.axisBottom`, and `d3.axisLeft` to create the chart, rendered as SVG. The data is loaded from a CSV file, and hovering over a segment displays a tooltip showing the exact percentage for that genre and rating category. The chart includes a title and an x-axis label, with legends omitted.
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