Activity6_Task2
✓ Published1🌍 Public
This example displays a stacked bar chart of movie ratings by genre, with each bar broken into colored segments for action, comedy, drama, thriller, and horror categories, based on data from `data.csv`. Using D3 v7, it applies `d3.stack()` to create the layered segments, `d3.scaleBand()` and `d3.scaleLinear()` for axes, and `d3.axisLeft()` and `d3.axisBottom()` for tick marks. Interactive tooltips appear on mouseover, showing the percentage for each segment.
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