Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-9 Q1

Public visualization

Viewing a saved revision (read-only)

4639e1023e5d4edca492f8c5c85d7d26

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