Skip to main content
100%

ICE-7 DV Pie Chart for ODB Data

✓ Published1🌍 Public
MMounikadontireddy
Last edited Mar 25, 2023
Created on Mar 25, 2023

This example visualizes monthly spending across countries using a D3 pie chart. It displays each country’s GDP per capita as a proportional slice, with country names overlaid on the segments and a legend showing the dollar values. The chart is rendered as an SVG, using d3.pie, d3.arc, and d3.scaleOrdinal for slicing and coloring. Data is loaded asynchronously from a CSV file via d3.csv, and the legend is manually drawn with SVG rects and text elements.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes