Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Aadapavaishnavi12
Last edited Mar 27, 2023
Created on Mar 27, 2023
Forked from Pie Chart

This visualization displays the revenue of the top 20 makeup products using a basic pie chart with a legend to the right. The chart uses D3 v5's `pie` and `arc` generators to create the segments and `scaleOrdinal` with `schemeCategory10` for color encoding. Data is loaded from a CSV file via `d3.csv`, then sorted descending by revenue and sliced to the top 20 items. The SVG includes interactive mouseover logging and legend labels showing product names and dollar-formatted revenue values.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes