Assignment 2 Question 2
✓ Published0🌍 Public
This example displays a stacked bar chart comparing average user and critic video game ratings across twelve genres, based on data from a Kaggle dataset. It uses D3 v7 with an SVG rendering approach, leveraging `d3.stack()` to compose the two rating series per genre and `d3.scaleOrdinal` for color assignment. A custom tooltip, implemented with D3 event handlers, reveals exact scores on mouseover, while the chart includes labeled axes, a legend, and gridlines created via `d3.axisBottom`.
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