Fork of [TEST] Pie Chart
✓ Published0🌍 Public
This example shows a pie chart of credit rating categories, where each segment’s size corresponds to a percentage value and is encoded with a distinct ordinal color. The chart renders as an SVG using D3 v5, with `pie()` comouting the arc angles and `arc()` generating the segment paths. A legend on the right lists each label with its formatted percentage, sourced from `data.json`. The code uses `scaleOrdinal` for color mapping, `json()` for asynchronous data loading, and `format` for tick-label precision.
AI-generated descriptionMIT Licensed