Building an SVG Radar Chart by Hand
A radar chart places each variable along a spoke radiating from a center point, connecting values into a closed polygon.
Drop your image here
Supports PNG, JPG, BMP, WEBP up to 5MB
Positioning Points Around the Circle
Each variable in a radar chart gets an equal angular slice of the full circle, so its spoke angle is its index divided by the total count times two pi, and a point's position comes from multiplying that angle's cosine and sine by the scaled data value as a radius.
- Each variable's spoke angle is its index over total count times two pi
- The scaled data value becomes the radius along that spoke
- Multiplying the angle's cosine and sine by that radius gives x and y
Connecting Points into a Closed Shape
Once every variable's point is computed, connecting them produces the chart's characteristic shape, most simply by emitting a polygon element whose points attribute lists each coordinate pair in order, which closes the shape automatically without needing an explicit closing command.
- A polygon element's points attribute lists each coordinate pair in order
- Polygon automatically closes the shape without an explicit close command
- The resulting outline is the radar chart's characteristic web shape
Frequently Asked Questions
How do I calculate where each radar chart spoke should point?
Divide the full circle by the number of variables, so each spoke's angle is its index divided by the total count, multiplied by two pi radians.
Should radar chart axes all use the same scale?
Using a shared scale makes the shape meaningfully comparable, while per-axis scales can mislead by making unrelated magnitudes appear visually equivalent.
Related guides
Ready to Convert Your Image to SVG?
Free online converter — no sign-up, no watermarks, results in under 3 seconds.
Try It Free — Convert Image to SVG