Skip to main content
100%

Vikas Pie Chart

✓ Published1🌍 Public
Ppanduvik99@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from HTML Starter

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes