Skip to main content
100%

D3 Pie Chart_ICE7

✓ Published0🌍 Public
NNiharika-Guthikonda
Last edited Mar 26, 2023
Created on Mar 25, 2023
Forked from D3 Starter

This pie chart visualizes the calorie content per 100g for the top ten food items, sorted in descending order. The visualization is built using D3 version 7, rendering via SVG, with each slice’s value labeled directly on the chart. It uses `d3.pie`, `d3.arc`, `d3.scaleOrdinal` with `schemeCategory10` for coloring, and appends interactive text elements. The data is loaded from a CSV file, and legends display the food name alongside its formatted calorie count, with the chart centered at (250,250).

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes