Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Pie chart

0 stars0🌍 Public
Ppmanoj13053@gmail.com
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from Fork of Pie chart

This pie chart visualizes the distribution of iris flower species from a remote CSV dataset, with each species represented as a colored slice and a matching legend. Built with D3 v6, the example uses the `pie` generator, `arc` generator, `scaleOrdinal`, and `schemeCategory10` to create the chart, while `svg` selections handle rendering. The code also demonstrates a reusable `pieChart` module with chained getter-setter methods, and the legend is drawn manually using appended `g` elements with rectangles and text labels, all styled with custom CSS.

AI-generated description

A demonstration of Pie chart.

Comments

Sign in to join the discussion.

MIT Licensed