Skip to main content
100%

Assignment 2 Question 2

✓ Published0🌍 Public
MMichael Biancardi
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Activity 7 Task 2

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes