🌍 Public
Vikas Pie Chart
This example visualizes the cost of different phone models as a pie chart, with a legend listing each phone and its price in dollars. The chart is rendered using D3.js v5 with SVG, and the data is loaded from a CSV file. The code uses `d3.pie` and `d3.arc` to generate the pie segments, `d3.scaleOrdinal` with `schemeCategory10` for colors, and event listeners for mouseover interactions that log the price data 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.