Sheet2
✓ Published0🌍 Public
CCatherine-Yu
Last edited Feb 13, 2017
Created on Feb 13, 2017
This piece loads a CSV file asynchronously and displays its contents as a pie chart. The code retrieves the data using `d3.xhr` and parses it with `d3.csv.parse`, then assigns category names and numeric magnitudes to each slice. The chart is drawn with `d3.scale.category20` for colors, using a fixed canvas size and outer radius. The title is extracted from the first line of the CSV, and slice labels use a small Arial font.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed