Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CE7 Pie Chart

Public visualization

CE7 Pie Chart

0 stars0🌍 Public
Ssowmyanagula@my.unt.edu
Last edited Mar 26, 2022
Created on Mar 26, 2022

A pie chart displays revenue distribution across ten beauty products, with Eyeshadows and Eyeliner as the top sellers. The visualization uses d3.pie and d3.arc to compute and render SVG path segments, while d3.scaleOrdinal assigns category colors. A legend lists each product with its revenue value, formatted via d3.format. Data loads asynchronously from a JSON file using d3.json, with revenue values converted to numbers before rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed