Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Bbhanuteja1807@gmail.com
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from Pie Chart

This example visualizes the basic cost of Netflix per month for ten countries, sorting the data from highest to lowest cost. The visualization uses a pie chart to represent the proportional costs, with a color-coded legend listing each country, its corresponding color swatch, and its monthly price in dollars. Built with D3 v5, the code uses `pie` and `arc` to generate the chart’s segments, while `scaleOrdinal` with `schemeCategory10` assigns colors. The data is loaded from a CSV file via `csv`, and the chart is rendered as an SVG with React, with interactions logging the cost value on mouseover.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes