Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Piechart ICE - 7 Rohith Arabati

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed