ปรับแต่ง
รูปทรง
ปลายเส้น
สีเส้นพื้นหลัง
สีเริ่มต้น
สีปลายทาง
สีตัวเลข
ความหนาตัวเลข
สร้างวงกลมแสดงความคืบหน้าแบบ SVG สำหรับแดชบอร์ด หน้าโปรไฟล์ หรือสรุปคะแนน ปรับขนาด ความหนา สี ไล่สี รูปทรงแบบเกจ และ Animation ได้ แล้วคัดลอกเป็นโค้ด SVG หรือคอมโพเนนต์ React ที่รับค่าเปอร์เซ็นต์ได้ทันที
<svg width="180" height="180" viewBox="0 0 180 180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="72%">
<defs>
<linearGradient id="cp-gradient" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#ff7a52"/>
<stop offset="100%" stop-color="#ff4f8b"/>
</linearGradient>
</defs>
<circle cx="90" cy="90" r="83" fill="none" stroke="#f1e4de" stroke-width="14" transform="rotate(-90 90 90)"/>
<circle class="cp-progress" cx="90" cy="90" r="83" fill="none" stroke="url(#cp-gradient)" stroke-width="14" stroke-dasharray="375.48 521.5" stroke-linecap="round" transform="rotate(-90 90 90)"/>
<text x="90" y="90" text-anchor="middle" dominant-baseline="central" font-family="system-ui, -apple-system, 'Segoe UI', sans-serif" font-size="36" font-weight="700" fill="#141414">72%</text>
<style>
@keyframes cp-fill { from { stroke-dasharray: 0 521.5; } }
.cp-progress { animation: cp-fill 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .cp-progress { animation: none; } }
</style>
</svg>วาง SVG ลงใน HTML ได้ทันที ถ้าใช้หลายวงในหน้าเดียว ให้เปลี่ยน id ของ gradient และชื่อ class ให้ไม่ซ้ำกัน