Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Piechart ICE - 7 Rohith Arabati

Public visualization

Viewing a saved revision (read-only)

bc9d949e767142e78217d85d6ad3ab6f

Fork of Piechart ICE - 7 Rohith Arabati

0 stars0🌍 Public
NNaimisha-M
Last edited Jul 2, 2022
Created on Jul 2, 2022

This D3.js pie chart visualizes annual car sales of different companies in India, with each slice representing a company and its market share. The visualization uses the `pie()` layout algorithm to compute arc segments, `arc()` to generate the path geometry, and `scaleOrdinal()` to map categorical data to a custom color palette. Sales values are labeled on each slice in thousands, while a legend on the right identifies companies and their corresponding values. The chart loads CSV data asynchronously from a GitHub raw URL, and the data is processed to calculate the total before rendering.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.