Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

pie chart

Public visualization

pie chart

0 stars0๐ŸŒ Public
Aadapavaishnavi12
Last edited Mar 30, 2023
Created on Mar 29, 2023
Forked from Pie Chart

This pie chart visualizes the prices of the top 11 products from a CSV dataset, sorted in descending order and drawn as SVG arcs. Built with D3.js v5, it uses the `pie` and `arc` functions to generate segments, `scaleOrdinal` with `schemeCategory10` for color coding, and includes an interactive legend showing each product name and its price in dollars. Data is loaded asynchronously via `csv` from a GitHub gist, and the chart is rendered on mouseover logging.

AI-generated description

products and its prices

Comments

Sign in to join the discussion.

MIT Licensed