Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7:Questions:1

Public visualization

Viewing a saved revision (read-only)

5b3b4523c22d47d9a4a353c83716c1b4

Activity7:Questions:1

0 stars1🌍 Public
Ssaivaishnogaruda@gmail.com
Last edited Nov 3, 2024
Created on Nov 3, 2024

This visualization uses a D3.js pie chart to show the distribution of car fuel types, with slices representing the proportion of cars using each fuel type. The data is loaded from a CSV file via `d3.csvParse` and grouped with `d3.rollup` to count cars by fuel category. The chart is rendered as SVG using `d3.pie()`, `d3.arc()`, and a color scale from `d3.schemeCategory10`, with labels placed at each arc’s centroid.

AI-generated description