CSCE 5320 QUESTION 1 ASSIGNMNET 2
✓ Published0🌍 Public
This example shows a pie chart built from CSV data, with each slice labeled by its category. The visualization loads data from a GitHub-hosted CSV file using `d3.csv` and renders the chart as an SVG. The code uses `d3.pie` to compute the arc layout, `d3.arc` for the slice geometry, and `d3.scaleOrdinal` with `d3.schemeCategory10` for colors. Slice labels are positioned using the `arc.centroid` method. The chart is created within a React-compatible HTML page, relying solely on D3 v7 and vanilla JavaScript.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed