Fork of Pie Chart
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed