Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE - 7 Pie Chart FOR MARkS

Public visualization

Viewing a saved revision (read-only)

29a64e2ecf4e4b47b1ee467934a64197

Fork of Fork of ICE - 7 Pie Chart FOR MARkS

0 stars0🌍 Public
Kkarumanchimanasa
Last edited Mar 12, 2023
Created on Mar 12, 2023

A pie chart visualizes company profits from a CSV dataset, encoding each company's profit value as a colored slice with a text label showing the profit amount. The legend lists company names alongside their corresponding colors and profit values. Built with D3 v5 in a React context, the code uses `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.csv` to fetch and render the SVG, with pie slices positioned via `arc.centroid` and legend items generated dynamically.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.