Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie_Chart_Question1

Public visualization

Viewing a saved revision (read-only)

5cb06ba599b84f3fa4ced7902b0077c4

Pie_Chart_Question1

0 stars5🌍 Public
Nnaveen.dodda4321@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Pie Chart

A pie chart displays the basic cost of Netflix subscriptions across ten countries, sorted from highest to lowest and formatted in US dollars. The chart renders as an SVG using D3 v5 within a React framework, leveraging D3's `pie`, `arc`, and `scaleOrdinal` functions to generate segments and apply a categorical color scheme. A legend with colored rectangles, country names, and cost values accompanies the plot, and hovering over a segment logs its cost to the console. Data is loaded asynchronously from a GitHub-hosted CSV file using D3's `csv` method.

AI-generated description

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

See also React Starter.