Skip to main content
100%

[TEST] Pie Chart

✓ Published3🌍 Public
Mmbehiry-CW
Last edited Feb 20, 2020
Created on Feb 20, 2020
Forked from [TEST] Pie Chart

This pie chart displays the distribution of credit ratings, with values ranging from 0% to 73.2%, using a static SVG rendering. The chart uses d3.pie and d3.arc to generate the segments, with d3.scaleOrdinal assigning colors from a custom palette. A legend, built with SVG rectangles and text elements, lists each rating label alongside its numeric percentage. Data is loaded from a JSON file via d3.json, with string values converted to numbers before the chart is rendered. The visualization includes a tooltip that logs data values to the console on mouseover.

AI-generated description
MIT Licensed

Similar vizzes