Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE - 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

3bcea09adbf548c3aca935eb242c36a6

Fork of Fork of ICE - 7 Pie Chart

0 stars0🌍 Public
RRohith arabati
Last edited Mar 26, 2022
Created on Mar 26, 2022

A pie chart displays annual car sales for different companies in India, with each slice labeled with its sales value in thousands and accompanied by a color-coded legend showing company names and corresponding totals. The visualization uses d3.pie() and d3.arc() to generate the chart, with d3.scaleOrdinal assigning colors from a predefined palette. Data is loaded asynchronously from a CSV file using d3.csv, and text labels are positioned using the arc centroid method. The SVG rendering relies on d3 v5, with formatting applied via d3.format.

AI-generated description