Skip to main content
100%

Task-9 Q1

✓ Published1🌍 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
MIT Licensed

Similar vizzes