返回 ppt-master
gauge_chart.svg
根目录 / skills / ppt-master / templates / charts / gauge_chart.svg
1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720"
2 font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
3 font-size="12">
4 <!--
5 Gauge Chart Template
6 Usage: One bounded metric against one explicit goal or threshold
7 Scenarios: KPI completion, health index, performance score
8 Skip: Multiple peer metrics; use bullet_chart or progress_bar_chart
9 -->
10 <!-- Background -->
11 <rect width="1280" height="720" fill="#F8FAFC"/>
12 <!-- Title -->
13 <g id="header" data-pptx-bounds="40 15 1200 125">
14 <text x="640" y="60"
15 font-size="32" font-weight="700" fill="#0F172A" text-anchor="middle">Sales Target Attainment</text>
16 <text x="640" y="95"
17 font-size="18" fill="#64748B" text-anchor="middle">Q4 2025 · Actual 85% against an 80% target</text>
18 </g>
19 <!-- One hero gauge: Sales target attainment 85% -->
20 <g id="heroGauge" data-pptx-bounds="395 125 490 440" transform="translate(640, 380)">
21 <g id="gaugeScale" transform="scale(1.35)">
22 <!-- Scales (0-60% Red, 60-80% Amber, 80-100% Emerald) -->
23 <path d="M -150,0 A 150,150 0 0,1 46.35,-142.66" fill="none" stroke="#FECACA" stroke-width="30" stroke-linecap="round"/>
24 <path d="M 46.35,-142.66 A 150,150 0 0,1 121.35,-88.17" fill="none" stroke="#FDE68A" stroke-width="30" stroke-linecap="round"/>
25 <path d="M 121.35,-88.17 A 150,150 0 0,1 150,0" fill="none" stroke="#A7F3D0" stroke-width="30" stroke-linecap="round"/>
26 <!-- Tick Marks -->
27 <line x1="-135" y1="0" x2="-120" y2="0" stroke="#64748B" stroke-width="2"/>
28 <line x1="-95.5" y1="-95.5" x2="-84.85" y2="-84.85" stroke="#64748B" stroke-width="2"/>
29 <line x1="0" y1="-135" x2="0" y2="-120" stroke="#64748B" stroke-width="2"/>
30 <line x1="95.5" y1="-95.5" x2="84.85" y2="-84.85" stroke="#64748B" stroke-width="2"/>
31 <line x1="135" y1="0" x2="120" y2="0" stroke="#64748B" stroke-width="2"/>
32 </g>
33 <!-- Tick Labels -->
34 <text x="-215" y="30"
35 font-size="14" fill="#64748B" text-anchor="middle">0%</text>
36 <text x="0" y="-230"
37 font-size="14" fill="#64748B" text-anchor="middle">50%</text>
38 <text x="215" y="30"
39 font-size="14" fill="#64748B" text-anchor="middle">100%</text>
40 <!-- Needle (85% = 153°, start from -90°) -->
41 <g id="gaugeNeedle" transform="scale(1.35)">
42 <g transform="rotate(63)">
43 <path d="M 0,-100 L -8,0 L 0,15 L 8,0 Z" fill="#0F172A"/>
44 </g>
45 <circle cx="0" cy="0" r="15" fill="#0F172A"/>
46 <circle cx="0" cy="0" r="8" fill="#FFFFFF"/>
47 </g>
48 <!-- Center Value -->
49 <text x="0" y="80"
50 font-size="64" font-weight="700" fill="#10B981" text-anchor="middle">85%</text>
51 <text x="0" y="125"
52 font-size="24" font-weight="600" fill="#0F172A" text-anchor="middle">Current achievement</text>
53 <!-- Status Tag -->
54 <rect x="-68" y="142" width="136" height="35" rx="18" fill="#D1FAE5"/>
55 <text x="0" y="166"
56 font-size="17" font-weight="600" fill="#047857" text-anchor="middle">Above target</text>
57 </g>
58 <!-- Threshold legend -->
59 <g id="legendBar" data-pptx-bounds="265 593 750 54" transform="translate(340, 600)">
60 <rect x="0" y="0" width="600" height="40" rx="8" fill="#FFFFFF" stroke="#E2E8F0"/>
61 <rect x="30" y="12" width="16" height="16" rx="3" fill="#FECACA"/>
62 <text x="55" y="24"
63 font-size="13" font-weight="600" fill="#475569">Critical (0-60%)</text>
64 <rect x="180" y="12" width="16" height="16" rx="3" fill="#FDE68A"/>
65 <text x="205" y="24"
66 font-size="13" font-weight="600" fill="#475569">Warning (60-80%)</text>
67 <rect x="340" y="12" width="16" height="16" rx="3" fill="#A7F3D0"/>
68 <text x="365" y="24"
69 font-size="13" font-weight="600" fill="#475569">Target (80-100%)</text>
70 <text x="500" y="24"
71 font-size="13" fill="#94A3B8">Benchmark: 80%</text>
72 </g>
73 <!-- Data Source -->
74 <g id="source" data-pptx-bounds="40 670 1200 40">
75 <text x="640" y="695"
76 font-size="14" fill="#94A3B8" text-anchor="middle">Source: Business Intelligence Platform · Q4 2025</text>
77 </g>
78 </svg>
79
79 lines Plain Text