Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Firoze_pchart

Public visualization

Viewing a saved revision (read-only)

59bf1166f7a148099e500522dd10e7cb

Firoze_pchart

0 stars0🌍 Public
Sshaikfiroze186@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

This example shows the distribution of Formula 1 car brands as a pie chart, with each slice labeled by its percentage of the total. The chart uses a categorical color scale and includes a legend, title, and axis labels. Built with D3 v6, it loads CSV data, applies the d3.pie and d3.arc generators to compute and draw the arcs, and uses d3.scaleOrdinal with schemeCategory10 for coloring. Percentage labels are positioned using arcGenerator.centroid, with SVG rendering throughout.

AI-generated description