Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity9_Q1

Public visualization

Activity9_Q1

0 stars0🌍 Public
Zzoe.romo@att.net
Last edited Apr 22, 2024
Created on Apr 21, 2024

This donut chart shows global video game sales aggregated by genre, using a pie slice for each genre with corresponding labels and a color legend. Built with D3 v6, the code loads data from a CSV file via `d3.csv`, aggregates it with `d3.rollups` and `d3.sum`, and renders the chart using `d3.pie` and `d3.arc` paths. Labels are positioned with `d3.arc.centroid`, and a legend is added using `d3.selectAll`.

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.

Comments

Sign in to join the discussion.

MIT Licensed