Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Kkakumanusreya
Last edited Mar 28, 2023
Created on Mar 28, 2023
Forked from Pie Chart

This example visualizes the basic cost of Netflix across ten hobbies using a pie chart. The chart is rendered as an SVG, with each slice colored via `d3.scaleOrdinal` and `d3.schemeCategory10`, and includes a legend showing each hobby’s name and its corresponding numeric value. The code loads data from a CSV file using `d3.csv`, sorts it descending by cost, and builds the pie with `d3.pie` and `d3.arc`. Mouseover events log the hobby value to the console, and the visualization is built with React, D3 v5, and SVG paths.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes