Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of [TEST] Pie Chart

Public visualization

Viewing a saved revision (read-only)

bc573a5b6a274956a3a4ac2150e8e2fb

Fork of [TEST] Pie Chart

0 stars0🌍 Public
Ppanduvik99@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024
Forked from [TEST] Pie Chart

This example shows the cost of ten different phones as a pie chart, with a color-coded legend on the right side that lists each phone’s name and its price in dollars. The data is loaded from a CSV file hosted on a GitHub gist, sorted by descending price, and then rendered as SVG paths using `d3.pie` and `d3.arc`. Colors come from `d3.scaleOrdinal` with `schemeCategory10`, and mouseover events log price data to the console. The chart uses D3 v5.

AI-generated description