Skip to main content
100%

Fork of [TEST] Pie Chart

✓ Published0🌍 Public
Pprudhvi
Last edited Mar 5, 2023
Created on Mar 5, 2023
Forked from [TEST] Pie Chart

This visualization presents a pie chart that breaks down a rating distribution into categories such as "AAA Local," "AA+ Local," and "BBB- Internacional," with data loaded from an external JSON file. The chart uses D3.js version 5, specifically employing the `pie`, `arc`, and `scaleOrdinal` functions from the D3 API to calculate arc segments and assign a custom color palette. A legend, positioned to the right, displays each category label and its corresponding percentage value. The SVG output is rendered on a 960x500 canvas, with each slice's proportion determined by the numeric `value` field in the data.

AI-generated description
MIT Licensed

Similar vizzes