Skip to main content
100%

Pie chart using SVG

✓ Published0🌍 Public
PPeter Cordone
Last edited Sep 27, 2021
Created on Aug 27, 2021
Forked from HTML Starter

This example shows a simple pie chart with two segments: a large blue circle and a smaller, lighter blue wedge overlay. It renders entirely as static SVG markup, using a `<circle>` element for the base and a `<path>` arc for the wedge. The path draws with an `M` command, an `A` arc command, and a `rotate(-90)` transform to position the wedge. No JavaScript libraries or data binding are involved; the chart is hard-coded in the HTML.

AI-generated description

Pie chart using SVG.

I looked at this blog post on the pie chart https://www.vicompany.nl/magazine/how-to-code-a-pie-a-designers-adventure-in-maths-and-svg

MIT Licensed

Similar vizzes