Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Fork of Pie Chart

0 stars1๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed