Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

3fdb7218e2144866b3fae76bde98a322

Fork of Pie Chart

0 stars0🌍 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.