Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

bdb58f0f7d424d0ea50f9e0814f8cf69

Fork of Pie Chart

0 stars0🌍 Public
Nnavyasrimeka9@gmail.com
Last edited Mar 29, 2023
Created on Mar 29, 2023
Forked from Pie Chart

This example displays the cost of living for the top 10 countries using a pie chart, with each slice colored and accompanied by a legend listing country names and dollar amounts. The visualization is built with D3 v5 in a React framework, rendering SVG elements via `d3.pie`, `d3.arc`, and `d3.scaleOrdinal`, while loading CSV data from a GitHub gist. Data is sorted and sliced to show only the top 10 values, with hover interactions logging slice data to the console.

AI-generated description

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

See also React Starter.