Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE7_Pie

Public visualization

ICE7_Pie

0 stars1🌍 Public
Ssivaniammisetti2002@gmail.com
Last edited Mar 30, 2026
Created on Mar 30, 2026
Forked from D3 Starter

This example visualizes the distribution of exercise levels as a pie chart, with slices labeled directly on the chart and a legend showing each category’s count. It loads data from a CSV file using d3.csv, converts values to numbers, and renders the pie using d3.pie and d3.arc in an SVG. The chart applies a categorical color scheme via d3.scaleOrdinal with d3.schemeCategory10, and positions labels using arc centroid calculations. The visualization is built entirely with D3 v7, rendering to SVG with a centered chart group and a right-side legend.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed