Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

piechartfork

Public visualization

Viewing a saved revision (read-only)

b9f9167163324e389c3a736694ec35e8

piechartfork

0 stars0🌍 Public
SSnigdha6698
Last edited Mar 26, 2022
Created on Mar 26, 2022
Forked from Fork of Pie Chart

A pie chart displays the 2015 sales for different companies, with each slice colored and labeled in a legend alongside its total value. The visualization uses D3 v5’s `pie` and `arc` functions to generate the SVG segments, with `scaleOrdinal` assigning colors from a fixed palette. Data is loaded asynchronously via `d3.csv` from a gist, and the chart is rendered within a React-based HTML page, with legend text and values formatted using `d3.format`.

AI-generated description

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

See also React Starter.