Skip to main content
100%

[TEST] Pie Chart

✓ Published34🌍 Public
PPabloReyesBetanzo
Last edited Nov 20, 2018
Created on Nov 5, 2018
Forked from Making a Bar Chart

This pie chart displays the distribution of credit rating categories, sourced from local and international classifications, with "AAA Local" dominating at over 73%. Built with D3 v5, it uses the `pie` and `arc` APIs to generate SVG paths with an ordinal color scale. A legend, created with `scaleOrdinal`, lists each label and its corresponding percentage, formatted using `format`. The chart is rendered from `data.json`, with values converted to numbers before plotting.

AI-generated description
MIT Licensed

Similar vizzes