Skip to main content
100%

Fork of Pie Chart

✓ Published1🌍 Public
Mmanishcheruku
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from Pie Chart

This example visualizes the basic cost of Netflix subscriptions across ten countries, showing each cost as a slice of a pie chart with a corresponding legend that lists country names and their dollar values. The chart is built using D3.js v5 within a React framework, leveraging the `pie`, `arc`, and `scaleOrdinal` APIs to generate and color the SVG segments. Data is loaded from a CSV file hosted on GitHub Gist, sorted in descending order, and the chart renders interactively, logging the cost of a selected slice to the console on mouseover.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes