Skip to main content
100%

Fork of Fork of ICE-7 pie chart

✓ Published0🌍 Public
Llikith1266
Last edited Mar 29, 2022
Created on Mar 29, 2022

This pie chart visualizes the number of car units sold, categorizing the data by class name and assigning each segment a distinct color from a predefined palette. The chart renders as an SVG with arcs generated using d3.arc and positions data through d3.pie, while d3.scaleOrdinal maps colors to categories. A legend on the right displays each class with its corresponding color and formatted value using d3.format. Data is loaded asynchronously from a CSV file via d3.csv.

AI-generated description
MIT Licensed

Similar vizzes