Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-9 Q1

Public visualization

Viewing a saved revision (read-only)

f123d409e61e48e299d4d8f8ccb5c262

Task-9 Q1

0 stars1🌍 Public
Hharshaps15@gmail.com
Last edited Apr 23, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

This pie chart shows the sales distribution of cars across six manufacturers, with Ferrari, Mercedes, Audi, Porsche, BMW, and Mclaren. The visualization highlights proportional market share using a color-coded legend that displays each manufacturer’s percentage of total sales. Built with D3.js v5, the chart uses `d3.pie` and `d3.arc` to generate the SVG paths, while `d3.scaleOrdinal` with `schemeCategory10` assigns colors. Data is hardcoded in the script, and the rendering uses SVG elements with a legend created manually via appended rectangles and text labels.

AI-generated description