Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

harshita Pie_Chart_Question1

Public visualization

harshita Pie_Chart_Question1

0 stars0๐ŸŒ Public
HHarshita Vairagade
Last edited Apr 28, 2024
Created on Apr 28, 2024

This pie chart visualizes the basic costs associated with populations across different countries, displaying the top ten entries sorted by cost. The chart uses an SVG rendering with D3.js v5, employing `pie()` and `arc()` to generate segments and `scaleOrdinal` with `schemeCategory10` for color encoding. A legend lists each country with corresponding color swatches and dollar-formatted values. Data is loaded remotely from a CSV file hosted on GitHub, and hover interactions log segment values to the console.

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