Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

839530260256418aa51cc31a69717ed3

Pie Chart

0 stars0🌍 Public
Aanushaanumula
Last edited Jul 3, 2022
Created on Jun 30, 2022
Forked from D3 Starter

This pie chart visualizes global sales figures for PS4 games, with each slice labeled with its corresponding sales value in thousands and accompanied by a legend listing game titles. The visualization uses D3 v5 APIs including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate and color the SVG segments, while data is loaded asynchronously from a CSV file using `d3.csv`. Text labels and legend entries are positioned via arc centroid calculations and manual translation transforms.

AI-generated description

A demonstration of how to start using D3 version 6.