Skip to main content
100%

ICE - 7 Pie Chart

✓ Published0🌍 Public
IIsabella Jaya Rani C
Last edited Mar 13, 2023
Created on Mar 13, 2023
Forked from HTML Starter

This pie chart visualizes the peak RPM values of cars from the Car_Price dataset, with each slice colored by RPM range and labeled via a legend listing car names and abbreviated RPM values. The chart uses D3.js v5’s `pie` and `arc` generators to compute and draw the SVG paths, while `scaleOrdinal` assigns colors from a predefined array. Legends are built from the same pie data, with text formatted using `d3.format`. Data is loaded asynchronously from a CSV via `d3.csv`.

AI-generated description

Creating a pie chart with d3.js

MIT Licensed

Similar vizzes