Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 9 & 10 D3 Q1 Pie chart UN

Public visualization

Task 9 & 10 D3 Q1 Pie chart UN

0 stars0🌍 Public
Uuzairnaeem15@gmail.com
Last edited Apr 20, 2024
Created on Apr 20, 2024

A D3 pie chart visualizes the top 10 companies by revenue, with each slice labeled in billions and a matching color-coded legend. The chart uses `d3.pie()` and `d3.arc()` to generate segments, `d3.scaleOrdinal` for colors, and SVG text elements for labels. Revenue data is loaded from a CSV file, formatted with `d3.format`, and rendered at 500 pixels high with a legend positioned to the side.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed