Skip to main content
100%

pie chart

✓ Published0🌍 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

MIT Licensed

Similar vizzes