🌍 Public
Viewing a saved revision (read-only)
1951fd4555674dcbaa368b842e1a3ee6
assignment-2 fork
This static pie chart shows the distribution of fruit quantities. The visualization is rendered as an SVG, with each slice labeled by its corresponding fruit name. The code loads data from a CSV file hosted on a GitHub gist using `d3.csv`. It employs `d3.pie` to compute the arc segments, `d3.arc` for the path geometry, and `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring. The chart is centered within a 600x400 SVG canvas, with a title placed above the plot.
AI-generated descriptionA demonstration of how to start using D3 version 6.