🌍 Public
Vikas Pie Chart
This visualization uses a pie chart to show the cost of different phones, displaying the top 10 items by price. The chart is rendered as an SVG, with each slice color-coded and accompanied by a legend listing phone names and prices in dollars. Built with D3 v5, the code utilizes `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.schemeCategory10` to generate the segments and colors. Data is loaded from a CSV file via `d3.csv` and sorted before rendering, with interactive mouseover events logging prices to the console.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed




![Fork of [TEST] Pie Chart](/viz/95e2525bd87142bda7f1c1b766f01630/social-image.png?v=79ea7463e59e4c35bca43790158a84b3)



Comments
Sign in to join the discussion.