Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ic7 pie chart

Public visualization

ic7 pie chart

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

A pie chart visualizes the cost distribution of protein present in various cereals, with each slice colored by cereal type and accompanied by a legend showing names and cost values. The data is loaded from a CSV file using `d3.csv` via the `getData` module, then processed with `d3.pie` and rendered as SVG arcs using `d3.arc`. Colors are assigned through `d3.scaleOrdinal`, and legend text formats costs with `d3.format`. The chart uses D3 v5 and is authored by divyagunuguntla.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed