Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie_Chart_Question1

Public visualization

Viewing a saved revision (read-only)

86a2e44d74c74641b9010b7439aa81f5

Fork of Pie_Chart_Question1

0 stars0🌍 Public
HHarshita Vairagade
Last edited Apr 28, 2024
Created on Apr 28, 2024

This fork renders a pie chart comparing the basic subscription cost of Netflix across ten countries, sorted in descending order. The visualization uses D3.js v5 APIs including `pie()`, `arc()`, and `scaleOrdinal` with `schemeCategory10` for color mapping. A legend displays each country's name and cost in dollars, formatted with a custom number formatter. Data is loaded asynchronously via `csv()` from a GitHub-hosted CSV file, and the chart is drawn as SVG within a React project, with mouseover events logging values to the console.

AI-generated description

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

See also React Starter.