Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

yasmeen pie

Public visualization

Viewing a saved revision (read-only)

7ca36e5e958b43f894119692cb6a5fc7

yasmeen pie

0 stars1🌍 Public
Yyasmeenha
Last edited Mar 12, 2023
Created on Mar 11, 2023
Forked from yasmeen pie

This example visualizes annual car sales for different companies as a pie chart, with each slice labeled by its sales value in thousands and accompanied by a color-coded legend. It uses D3 v5 to load CSV data via `d3.csv`, compute pie angles with `d3.pie`, render SVG paths with `d3.arc`, and apply a ordinal color scale. The data comes from a GitHub gist, and the chart is centered with a title.

AI-generated description

Pie chart for car sales