Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fitness Data Pie Chart

Public visualization

Fitness Data Pie Chart

0 stars0๐ŸŒ Public
Ssanthoshdachepally333@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

This pie chart visualizes the distribution of fitness goals from a CSV dataset, showing the percentage share of each goal category. D3 v7 loads the data with `d3.csv`, aggregates counts using `d3.rollup`, and generates the pie with `d3.pie` and `d3.arc`. A categorical color scale from `d3.schemeSet2` fills the slices, which are labeled with percentage values. A legend on the right, built with SVG rectangles and text, maps each color to its corresponding goal, making the chart easy to read at a glance.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed