Skip to main content
100%

Vikas Pie Chart

✓ Published0🌍 Public
Ppanduvik99@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from 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 description

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

See also React Starter.

MIT Licensed

Similar vizzes