Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-7 BALAJI PIE CHART

Public visualization

Viewing a saved revision (read-only)

1928e6f11520404782220abe55100e01

ICE-7 BALAJI PIE CHART

0 stars0🌍 Public
Ppeddubalaji@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

This pie chart visualizes company metrics by aggregating the total values of six distinct fields—Revenue, Profit, Customers, Expenses, EmployeeCount, and Productivity Index—from a CSV file fetched from a GitHub gist. The data is loaded using `d3.csv`, and the sums are calculated with `d3.sum`. The chart is rendered as an SVG, using `d3.pie` to generate the arc data and `d3.arc` to draw each sector, which are then colored with `d3.scaleOrdinal` and the `d3.schemeCategory10` palette. Text labels are positioned at each arc’s centroid.

AI-generated description

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

See also React Starter.