Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

style(charts): redesign 6 chart templates with modern aesthetics and SVG grouping

hugohe36e6eb48c1af6
diff --git a/skills/ppt-master/templates/charts/area_chart.svg b/skills/ppt-master/templates/charts/area_chart.svg
index 68ef10f2..7235540c 100644
--- a/skills/ppt-master/templates/charts/area_chart.svg
+++ b/skills/ppt-master/templates/charts/area_chart.svg
@@ -21,14 +21,13 @@
</linearGradient>
<!-- 数据点阴影 -->
- <filter id="dotShadow">
+ <filter id="dotShadow" x="-15%" y="-15%" width="130%" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
- <feOffset dx="0" dy="1"/>
- <feComponentTransfer>
- <feFuncA type="linear" slope="0.3"/>
- </feComponentTransfer>
+ <feOffset dx="0" dy="1" result="offsetBlur"/>
+ <feFlood flood-color="#000000" flood-opacity="0.3" result="shadowColor"/>
+ <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
<feMerge>
- <feMergeNode/>
+ <feMergeNode in="shadow"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
@@ -202,48 +201,56 @@
<!-- 统计卡片 -->
<g id="statsCards" transform="translate(60, 620)">
<!-- 卡片1: 总访问量 -->
- <rect x="0" y="0" width="200" height="70" rx="8" fill="#F8F9FA" stroke="#E0E0E0" stroke-width="1"/>
- <text x="20" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#7F8C8D">
- <tspan>年度总访问量</tspan>
- </text>
- <text x="20" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="24" font-weight="bold" fill="#2C3E50">
- <tspan>10,240万</tspan>
- </text>
+ <g id="card-total-visits">
+ <rect x="0" y="0" width="200" height="70" rx="8" fill="#F8F9FA" stroke="#E0E0E0" stroke-width="1"/>
+ <text x="20" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" fill="#7F8C8D">
+ <tspan>年度总访问量</tspan>
+ </text>
+ <text x="20" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="24" font-weight="bold" fill="#2C3E50">
+ <tspan>10,240万</tspan>
+ </text>
+ </g>
<!-- 卡片2: PC端占比 -->
- <rect x="220" y="0" width="180" height="70" rx="8" fill="#E3F2FD" stroke="#2196F3" stroke-width="1"/>
- <text x="240" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#1976D2">
- <tspan>PC端占比</tspan>
- </text>
- <text x="240" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="24" font-weight="bold" fill="#2196F3">
- <tspan>55.8%</tspan>
- </text>
+ <g id="card-pc-share">
+ <rect x="220" y="0" width="180" height="70" rx="8" fill="#E3F2FD" stroke="#2196F3" stroke-width="1"/>
+ <text x="240" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" fill="#1976D2">
+ <tspan>PC端占比</tspan>
+ </text>
+ <text x="240" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="24" font-weight="bold" fill="#2196F3">
+ <tspan>55.8%</tspan>
+ </text>
+ </g>
<!-- 卡片3: 移动端占比 -->
- <rect x="420" y="0" width="180" height="70" rx="8" fill="#E8F5E9" stroke="#4CAF50" stroke-width="1"/>
- <text x="440" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#388E3C">
- <tspan>移动端占比</tspan>
- </text>
- <text x="440" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="24" font-weight="bold" fill="#4CAF50">
- <tspan>44.2%</tspan>
- </text>
+ <g id="card-mobile-share">
+ <rect x="420" y="0" width="180" height="70" rx="8" fill="#E8F5E9" stroke="#4CAF50" stroke-width="1"/>
+ <text x="440" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" fill="#388E3C">
+ <tspan>移动端占比</tspan>
+ </text>
+ <text x="440" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="24" font-weight="bold" fill="#4CAF50">
+ <tspan>44.2%</tspan>
+ </text>
+ </g>
<!-- 卡片4: 同比增长 -->
- <rect x="620" y="0" width="180" height="70" rx="8" fill="#FFF3E0" stroke="#FF9800" stroke-width="1"/>
- <text x="640" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#F57C00">
- <tspan>同比增长</tspan>
- </text>
- <text x="640" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="24" font-weight="bold" fill="#FF9800">
- <tspan>+23.5%</tspan>
- </text>
+ <g id="card-yoy-growth">
+ <rect x="620" y="0" width="180" height="70" rx="8" fill="#FFF3E0" stroke="#FF9800" stroke-width="1"/>
+ <text x="640" y="25" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" fill="#F57C00">
+ <tspan>同比增长</tspan>
+ </text>
+ <text x="640" y="55" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="24" font-weight="bold" fill="#FF9800">
+ <tspan>+23.5%</tspan>
+ </text>
+ </g>
</g>
<!-- 数据来源 -->
diff --git a/skills/ppt-master/templates/charts/bar_chart.svg b/skills/ppt-master/templates/charts/bar_chart.svg
index 8defe74c..335f23d6 100644
--- a/skills/ppt-master/templates/charts/bar_chart.svg
+++ b/skills/ppt-master/templates/charts/bar_chart.svg
@@ -24,14 +24,13 @@
</linearGradient>
<!-- 阴影 -->
- <filter id="barShadow">
+ <filter id="barShadow" x="-15%" y="-15%" width="130%" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
- <feOffset dx="0" dy="1"/>
- <feComponentTransfer>
- <feFuncA type="linear" slope="0.3"/>
- </feComponentTransfer>
+ <feOffset dx="0" dy="1" result="offsetBlur"/>
+ <feFlood flood-color="#000000" flood-opacity="0.3" result="shadowColor"/>
+ <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
<feMerge>
- <feMergeNode/>
+ <feMergeNode in="shadow"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
@@ -89,91 +88,109 @@
<!-- 柱子数据 (柱宽50px, 间距130px, 总间距180px) -->
<!-- 柱子1: 华东 - 185M (370px高度, 每100M=200px) -->
- <rect x="220" y="180" width="50" height="370" rx="4" fill="url(#barGrad1)" filter="url(#barShadow)"/>
- <text x="245" y="165" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
- <tspan>185</tspan>
- </text>
- <text x="245" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" fill="#5D6D7E" text-anchor="middle">
- <tspan>华东</tspan>
- </text>
+ <g id="bar-1">
+ <rect x="220" y="180" width="50" height="370" rx="4" fill="url(#barGrad1)" filter="url(#barShadow)"/>
+ <text x="245" y="165" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
+ <tspan>185</tspan>
+ </text>
+ <text x="245" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" fill="#5D6D7E" text-anchor="middle">
+ <tspan>华东</tspan>
+ </text>
+ </g>
<!-- 柱子2: 华南 - 142M -->
- <rect x="400" y="266" width="50" height="284" rx="4" fill="url(#barGrad1)" filter="url(#barShadow)"/>
- <text x="425" y="251" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
- <tspan>142</tspan>
- </text>
- <text x="425" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" fill="#5D6D7E" text-anchor="middle">
- <tspan>华南</tspan>
- </text>
+ <g id="bar-2">
+ <rect x="400" y="266" width="50" height="284" rx="4" fill="url(#barGrad1)" filter="url(#barShadow)"/>
+ <text x="425" y="251" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
+ <tspan>142</tspan>
+ </text>
+ <text x="425" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" fill="#5D6D7E" text-anchor="middle">
+ <tspan>华南</tspan>
+ </text>
+ </g>
<!-- 柱子3: 华北 - 128M -->
- <rect x="580" y="294" width="50" height="256" rx="4" fill="url(#barGrad1)" filter="url(#barShadow)"/>
- <text x="605" y="279" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
- <tspan>128</tspan>
- </text>
- <text x="605" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" fill="#5D6D7E" text-anchor="middle">
- <tspan>华北</tspan>
- </text>
+ <g id="bar-3">
+ <rect x="580" y="294" width="50" height="256" rx="4" fill="url(#barGrad1)" filter="url(#barShadow)"/>
+ <text x="605" y="279" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
+ <tspan>128</tspan>
+ </text>
+ <text x="605" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" fill="#5D6D7E" text-anchor="middle">
+ <tspan>华北</tspan>
+ </text>
+ </g>
<!-- 柱子4: 西南 - 96M -->
- <rect x="760" y="358" width="50" height="192" rx="4" fill="url(#barGrad2)" filter="url(#barShadow)"/>
- <text x="785" y="343" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
- <tspan>96</tspan>
- </text>
- <text x="785" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" fill="#5D6D7E" text-anchor="middle">
- <tspan>西南</tspan>
- </text>
+ <g id="bar-4">
+ <rect x="760" y="358" width="50" height="192" rx="4" fill="url(#barGrad2)" filter="url(#barShadow)"/>
+ <text x="785" y="343" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
+ <tspan>96</tspan>
+ </text>
+ <text x="785" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" fill="#5D6D7E" text-anchor="middle">
+ <tspan>西南</tspan>
+ </text>
+ </g>
<!-- 柱子5: 华中 - 73M -->
- <rect x="940" y="404" width="50" height="146" rx="4" fill="url(#barGrad2)" filter="url(#barShadow)"/>
- <text x="965" y="389" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
- <tspan>73</tspan>
- </text>
- <text x="965" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" fill="#5D6D7E" text-anchor="middle">
- <tspan>华中</tspan>
- </text>
+ <g id="bar-5">
+ <rect x="940" y="404" width="50" height="146" rx="4" fill="url(#barGrad2)" filter="url(#barShadow)"/>
+ <text x="965" y="389" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
+ <tspan>73</tspan>
+ </text>
+ <text x="965" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" fill="#5D6D7E" text-anchor="middle">
+ <tspan>华中</tspan>
+ </text>
+ </g>
<!-- 柱子6: 东北 - 52M -->
- <rect x="1120" y="446" width="50" height="104" rx="4" fill="url(#barGrad3)" filter="url(#barShadow)"/>
- <text x="1145" y="431" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
- <tspan>52</tspan>
- </text>
- <text x="1145" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" fill="#5D6D7E" text-anchor="middle">
- <tspan>东北</tspan>
- </text>
+ <g id="bar-6">
+ <rect x="1120" y="446" width="50" height="104" rx="4" fill="url(#barGrad3)" filter="url(#barShadow)"/>
+ <text x="1145" y="431" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" font-weight="600" fill="#2C3E50" text-anchor="middle">
+ <tspan>52</tspan>
+ </text>
+ <text x="1145" y="580" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="16" fill="#5D6D7E" text-anchor="middle">
+ <tspan>东北</tspan>
+ </text>
+ </g>
</g>
<!-- 图例 -->
<g id="legend">
- <rect x="920" y="620" width="16" height="16" rx="2" fill="url(#barGrad1)"/>
- <text x="945" y="632" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#5D6D7E">
- <tspan>高增长区域 (&gt;100M)</tspan>
- </text>
+ <g id="legend-high">
+ <rect x="920" y="620" width="16" height="16" rx="2" fill="url(#barGrad1)"/>
+ <text x="945" y="632" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" fill="#5D6D7E">
+ <tspan>高增长区域 (&gt;100M)</tspan>
+ </text>
+ </g>
- <rect x="920" y="645" width="16" height="16" rx="2" fill="url(#barGrad2)"/>
- <text x="945" y="657" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#5D6D7E">
- <tspan>稳定区域 (50-100M)</tspan>
- </text>
+ <g id="legend-mid">
+ <rect x="920" y="645" width="16" height="16" rx="2" fill="url(#barGrad2)"/>
+ <text x="945" y="657" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" fill="#5D6D7E">
+ <tspan>稳定区域 (50-100M)</tspan>
+ </text>
+ </g>
- <rect x="920" y="670" width="16" height="16" rx="2" fill="url(#barGrad3)"/>
- <text x="945" y="682" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#5D6D7E">
- <tspan>潜力区域 (&lt;50M)</tspan>
- </text>
+ <g id="legend-low">
+ <rect x="920" y="670" width="16" height="16" rx="2" fill="url(#barGrad3)"/>
+ <text x="945" y="682" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" fill="#5D6D7E">
+ <tspan>潜力区域 (&lt;50M)</tspan>
+ </text>
+ </g>
</g>
<!-- 数据来源 -->
diff --git a/skills/ppt-master/templates/charts/box_plot_chart.svg b/skills/ppt-master/templates/charts/box_plot_chart.svg
index fda3d303..886acae5 100644
--- a/skills/ppt-master/templates/charts/box_plot_chart.svg
+++ b/skills/ppt-master/templates/charts/box_plot_chart.svg
@@ -30,14 +30,13 @@
</linearGradient>
<!-- 阴影 -->
- <filter id="boxShadow">
+ <filter id="boxShadow" x="-15%" y="-15%" width="130%" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
- <feOffset dx="0" dy="1"/>
- <feComponentTransfer>
- <feFuncA type="linear" slope="0.2"/>
- </feComponentTransfer>
+ <feOffset dx="0" dy="1" result="offsetBlur"/>
+ <feFlood flood-color="#000000" flood-opacity="0.2" result="shadowColor"/>
+ <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
<feMerge>
- <feMergeNode/>
+ <feMergeNode in="shadow"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
diff --git a/skills/ppt-master/templates/charts/bubble_chart.svg b/skills/ppt-master/templates/charts/bubble_chart.svg
index 8d1a75ec..1f64a907 100644
--- a/skills/ppt-master/templates/charts/bubble_chart.svg
+++ b/skills/ppt-master/templates/charts/bubble_chart.svg
@@ -38,14 +38,13 @@
</radialGradient>
<!-- 气泡阴影 -->
- <filter id="bubbleShadow">
+ <filter id="bubbleShadow" x="-15%" y="-15%" width="130%" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="4"/>
- <feOffset dx="0" dy="3"/>
- <feComponentTransfer>
- <feFuncA type="linear" slope="0.3"/>
- </feComponentTransfer>
+ <feOffset dx="0" dy="3" result="offsetBlur"/>
+ <feFlood flood-color="#000000" flood-opacity="0.3" result="shadowColor"/>
+ <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
<feMerge>
- <feMergeNode/>
+ <feMergeNode in="shadow"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
@@ -179,34 +178,46 @@
-->
<!-- 气泡F: 产品F (绿色,中等位置) -->
- <circle cx="550" cy="385" r="24" fill="url(#bubbleGrad2)" filter="url(#bubbleShadow)"/>
- <text x="550" y="390" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>F</tspan></text>
+ <g id="bubble-f">
+ <circle cx="550" cy="385" r="24" fill="url(#bubbleGrad2)" filter="url(#bubbleShadow)"/>
+ <text x="550" y="390" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>F</tspan></text>
+ </g>
<!-- 气泡E: 产品E (红色,问题象限) -->
- <circle cx="340" cy="525" r="22" fill="url(#bubbleGrad5)" filter="url(#bubbleShadow)"/>
- <text x="340" y="530" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>E</tspan></text>
+ <g id="bubble-e">
+ <circle cx="340" cy="525" r="22" fill="url(#bubbleGrad5)" filter="url(#bubbleShadow)"/>
+ <text x="340" y="530" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>E</tspan></text>
+ </g>
<!-- 气泡C: 产品C (橙色,明星象限) -->
- <circle cx="430" cy="196" r="28" fill="url(#bubbleGrad3)" filter="url(#bubbleShadow)"/>
- <text x="430" y="201" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="12" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>C</tspan></text>
+ <g id="bubble-c">
+ <circle cx="430" cy="196" r="28" fill="url(#bubbleGrad3)" filter="url(#bubbleShadow)"/>
+ <text x="430" y="201" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="12" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>C</tspan></text>
+ </g>
<!-- 气泡B: 产品B (紫色,金牛象限边缘) -->
- <circle cx="630" cy="315" r="38" fill="url(#bubbleGrad4)" filter="url(#bubbleShadow)"/>
- <text x="630" y="320" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="13" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>B</tspan></text>
+ <g id="bubble-b">
+ <circle cx="630" cy="315" r="38" fill="url(#bubbleGrad4)" filter="url(#bubbleShadow)"/>
+ <text x="630" y="320" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="13" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>B</tspan></text>
+ </g>
<!-- 气泡D: 产品D (蓝色,现金牛象限) -->
- <circle cx="880" cy="434" r="45" fill="url(#bubbleGrad1)" filter="url(#bubbleShadow)"/>
- <text x="880" y="439" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>D</tspan></text>
+ <g id="bubble-d">
+ <circle cx="880" cy="434" r="45" fill="url(#bubbleGrad1)" filter="url(#bubbleShadow)"/>
+ <text x="880" y="439" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>D</tspan></text>
+ </g>
<!-- 气泡A: 产品A (绿色,最大,金牛象限) -->
- <circle cx="820" cy="245" r="50" fill="url(#bubbleGrad2)" filter="url(#bubbleShadow)"/>
- <text x="820" y="250" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="15" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>A</tspan></text>
+ <g id="bubble-a">
+ <circle cx="820" cy="245" r="50" fill="url(#bubbleGrad2)" filter="url(#bubbleShadow)"/>
+ <text x="820" y="250" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="15" font-weight="600" fill="#FFFFFF" text-anchor="middle"><tspan>A</tspan></text>
+ </g>
</g>
<!-- 产品列表 -->
@@ -219,46 +230,58 @@
<line x1="15" y1="42" x2="165" y2="42" stroke="#E0E0E0" stroke-width="1"/>
<!-- 产品A -->
- <circle cx="30" cy="70" r="12" fill="url(#bubbleGrad2)"/>
- <text x="50" y="66" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品A</tspan></text>
- <text x="50" y="82" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" fill="#7F8C8D"><tspan>120亿 | +35% | 28%</tspan></text>
+ <g id="list-item-a">
+ <circle cx="30" cy="70" r="12" fill="url(#bubbleGrad2)"/>
+ <text x="50" y="66" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品A</tspan></text>
+ <text x="50" y="82" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" fill="#7F8C8D"><tspan>120亿 | +35% | 28%</tspan></text>
+ </g>
<!-- 产品B -->
- <circle cx="30" cy="115" r="10" fill="url(#bubbleGrad4)"/>
- <text x="50" y="111" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品B</tspan></text>
- <text x="50" y="127" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" fill="#7F8C8D"><tspan>85亿 | +25% | 18%</tspan></text>
+ <g id="list-item-b">
+ <circle cx="30" cy="115" r="10" fill="url(#bubbleGrad4)"/>
+ <text x="50" y="111" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品B</tspan></text>
+ <text x="50" y="127" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" fill="#7F8C8D"><tspan>85亿 | +25% | 18%</tspan></text>
+ </g>
<!-- 产品C -->
- <circle cx="30" cy="160" r="8" fill="url(#bubbleGrad3)"/>
- <text x="50" y="156" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品C</tspan></text>
- <text x="50" y="172" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" fill="#7F8C8D"><tspan>45亿 | +42% | 12%</tspan></text>
+ <g id="list-item-c">
+ <circle cx="30" cy="160" r="8" fill="url(#bubbleGrad3)"/>
+ <text x="50" y="156" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品C</tspan></text>
+ <text x="50" y="172" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" fill="#7F8C8D"><tspan>45亿 | +42% | 12%</tspan></text>
+ </g>
<!-- 产品D -->
- <circle cx="30" cy="205" r="11" fill="url(#bubbleGrad1)"/>
- <text x="50" y="201" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品D</tspan></text>
- <text x="50" y="217" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" fill="#7F8C8D"><tspan>130亿 | +8% | 25%</tspan></text>
+ <g id="list-item-d">
+ <circle cx="30" cy="205" r="11" fill="url(#bubbleGrad1)"/>
+ <text x="50" y="201" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品D</tspan></text>
+ <text x="50" y="217" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" fill="#7F8C8D"><tspan>130亿 | +8% | 25%</tspan></text>
+ </g>
<!-- 产品E -->
- <circle cx="30" cy="250" r="7" fill="url(#bubbleGrad5)"/>
- <text x="50" y="246" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品E</tspan></text>
- <text x="50" y="262" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" fill="#7F8C8D"><tspan>30亿 | -5% | 8%</tspan></text>
+ <g id="list-item-e">
+ <circle cx="30" cy="250" r="7" fill="url(#bubbleGrad5)"/>
+ <text x="50" y="246" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品E</tspan></text>
+ <text x="50" y="262" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" fill="#7F8C8D"><tspan>30亿 | -5% | 8%</tspan></text>
+ </g>
<!-- 产品F -->
- <circle cx="30" cy="295" r="7" fill="url(#bubbleGrad2)"/>
- <text x="50" y="291" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品F</tspan></text>
- <text x="50" y="307" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="11" fill="#7F8C8D"><tspan>65亿 | +15% | 9%</tspan></text>
+ <g id="list-item-f">
+ <circle cx="30" cy="295" r="7" fill="url(#bubbleGrad2)"/>
+ <text x="50" y="291" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="13" font-weight="600" fill="#2C3E50"><tspan>产品F</tspan></text>
+ <text x="50" y="307" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="11" fill="#7F8C8D"><tspan>65亿 | +15% | 9%</tspan></text>
+ </g>
</g>
<!-- 气泡大小图例 -->
diff --git a/skills/ppt-master/templates/charts/bullet_chart.svg b/skills/ppt-master/templates/charts/bullet_chart.svg
index a787b9bc..54f21e5d 100644
--- a/skills/ppt-master/templates/charts/bullet_chart.svg
+++ b/skills/ppt-master/templates/charts/bullet_chart.svg
@@ -7,35 +7,49 @@
-->
<defs>
- <linearGradient id="bulletExcellent" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#E8F5E9;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#C8E6C9;stop-opacity:1" />
+ <!-- 基础背景量程域 (专业级灰度) -->
+ <linearGradient id="bgFair" x1="0%" y1="0%" x2="100%" y2="0%">
+ <stop offset="0%" style="stop-color:#F1F5F9;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#E2E8F0;stop-opacity:1" />
</linearGradient>
-
- <linearGradient id="bulletGood" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#FFF8E1;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#FFE082;stop-opacity:1" />
+ <linearGradient id="bgGood" x1="0%" y1="0%" x2="100%" y2="0%">
+ <stop offset="0%" style="stop-color:#E2E8F0;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#CBD5E1;stop-opacity:1" />
</linearGradient>
-
- <linearGradient id="bulletFair" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#FFEBEE;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#FFCDD2;stop-opacity:1" />
+ <linearGradient id="bgExcellent" x1="0%" y1="0%" x2="100%" y2="0%">
+ <stop offset="0%" style="stop-color:#CBD5E1;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#94A3B8;stop-opacity:1" />
</linearGradient>
- <linearGradient id="actualBar" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#1976D2;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#2196F3;stop-opacity:1" />
+ <!-- 实际数据柱渐变 -->
+ <linearGradient id="actualBarBlue" x1="0%" y1="0%" x2="100%" y2="0%">
+ <stop offset="0%" style="stop-color:#2563EB;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#3B82F6;stop-opacity:1" />
</linearGradient>
-
<linearGradient id="actualBarGreen" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#388E3C;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#4CAF50;stop-opacity:1" />
+ <stop offset="0%" style="stop-color:#10B981;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#34D399;stop-opacity:1" />
</linearGradient>
-
<linearGradient id="actualBarOrange" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#F57C00;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#FF9800;stop-opacity:1" />
+ <stop offset="0%" style="stop-color:#F59E0B;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#FBBF24;stop-opacity:1" />
</linearGradient>
+ <linearGradient id="actualBarRed" x1="0%" y1="0%" x2="100%" y2="0%">
+ <stop offset="0%" style="stop-color:#EF4444;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#F87171;stop-opacity:1" />
+ </linearGradient>
+
+ <!-- 标准阴影滤镜 -->
+ <filter id="bulletShadow" x="-15%" y="-15%" width="130%" height="130%">
+ <feGaussianBlur in="SourceAlpha" stdDeviation="3"/>
+ <feOffset dx="0" dy="2" result="offsetBlur"/>
+ <feFlood flood-color="#000000" flood-opacity="0.15" result="shadowColor"/>
+ <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
+ <feMerge>
+ <feMergeNode in="shadow"/>
+ <feMergeNode in="SourceGraphic"/>
+ </feMerge>
+ </filter>
</defs>
<rect width="1280" height="720" fill="#FFFFFF"/>
@@ -52,17 +66,23 @@
<!-- Legend -->
<g id="legend" transform="translate(900, 100)">
- <rect x="0" y="0" width="20" height="12" fill="#FFCDD2" rx="2"/>
- <text x="28" y="10" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="12" fill="#5D6D7E"><tspan>Fair (0-60%)</tspan></text>
+ <g id="legend-fair">
+ <rect x="0" y="0" width="20" height="12" fill="url(#bgFair)" rx="2"/>
+ <text x="28" y="10" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="12" fill="#5D6D7E"><tspan>Fair (0-60%)</tspan></text>
+ </g>
- <rect x="120" y="0" width="20" height="12" fill="#FFE082" rx="2"/>
- <text x="148" y="10" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="12" fill="#5D6D7E"><tspan>Good (60-80%)</tspan></text>
+ <g id="legend-good">
+ <rect x="120" y="0" width="20" height="12" fill="url(#bgGood)" rx="2"/>
+ <text x="148" y="10" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="12" fill="#5D6D7E"><tspan>Good (60-80%)</tspan></text>
+ </g>
- <rect x="250" y="0" width="20" height="12" fill="#C8E6C9" rx="2"/>
- <text x="278" y="10" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="12" fill="#5D6D7E"><tspan>Excellent (80-100%+)</tspan></text>
+ <g id="legend-excellent">
+ <rect x="250" y="0" width="20" height="12" fill="url(#bgExcellent)" rx="2"/>
+ <text x="278" y="10" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="12" fill="#5D6D7E"><tspan>Excellent (80-100%+)</tspan></text>
+ </g>
</g>
<!-- Bullet 1: Sales Revenue 92% -->
@@ -76,17 +96,17 @@
<tspan>Target: $100M</tspan>
</text>
- <rect x="180" y="20" width="900" height="50" fill="url(#bulletFair)" rx="4"/>
- <rect x="180" y="20" width="720" height="50" fill="url(#bulletGood)" rx="4"/>
- <rect x="180" y="20" width="540" height="50" fill="url(#bulletExcellent)" rx="4"/>
- <rect x="180" y="32" width="828" height="26" fill="url(#actualBarGreen)" rx="3"/>
- <line x1="1080" y1="15" x2="1080" y2="75" stroke="#E74C3C" stroke-width="4"/>
- <text x="1020" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="bold" fill="#FFFFFF">
+ <rect x="180" y="20" width="900" height="50" fill="url(#bgFair)" rx="4"/>
+ <rect x="180" y="20" width="720" height="50" fill="url(#bgGood)" rx="4"/>
+ <rect x="180" y="20" width="540" height="50" fill="url(#bgExcellent)" rx="4"/>
+ <rect x="180" y="32" width="828" height="26" fill="url(#actualBarGreen)" rx="3" filter="url(#bulletShadow)"/>
+ <line x1="1080" y1="15" x2="1080" y2="75" stroke="#1E293B" stroke-width="4"/>
+ <text x="998" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="15" font-weight="bold" fill="#FFFFFF" text-anchor="end">
<tspan>$92M</tspan>
</text>
<text x="1120" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="20" font-weight="bold" fill="#4CAF50">
+ font-size="20" font-weight="bold" fill="#10B981">
<tspan>92%</tspan>
</text>
</g>
@@ -102,17 +122,17 @@
<tspan>Target: 500</tspan>
</text>
- <rect x="180" y="20" width="900" height="50" fill="url(#bulletFair)" rx="4"/>
- <rect x="180" y="20" width="720" height="50" fill="url(#bulletGood)" rx="4"/>
- <rect x="180" y="20" width="540" height="50" fill="url(#bulletExcellent)" rx="4"/>
- <rect x="180" y="32" width="873" height="26" fill="url(#actualBarGreen)" rx="3"/>
- <line x1="1080" y1="15" x2="1080" y2="75" stroke="#E74C3C" stroke-width="4"/>
- <text x="1050" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="bold" fill="#FFFFFF">
+ <rect x="180" y="20" width="900" height="50" fill="url(#bgFair)" rx="4"/>
+ <rect x="180" y="20" width="720" height="50" fill="url(#bgGood)" rx="4"/>
+ <rect x="180" y="20" width="540" height="50" fill="url(#bgExcellent)" rx="4"/>
+ <rect x="180" y="32" width="873" height="26" fill="url(#actualBarGreen)" rx="3" filter="url(#bulletShadow)"/>
+ <line x1="1080" y1="15" x2="1080" y2="75" stroke="#1E293B" stroke-width="4"/>
+ <text x="1043" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="15" font-weight="bold" fill="#FFFFFF" text-anchor="end">
<tspan>485</tspan>
</text>
<text x="1120" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="20" font-weight="bold" fill="#4CAF50">
+ font-size="20" font-weight="bold" fill="#10B981">
<tspan>97%</tspan>
</text>
</g>
@@ -128,17 +148,17 @@
<tspan>Target: 90%</tspan>
</text>
- <rect x="180" y="20" width="900" height="50" fill="url(#bulletFair)" rx="4"/>
- <rect x="180" y="20" width="720" height="50" fill="url(#bulletGood)" rx="4"/>
- <rect x="180" y="20" width="540" height="50" fill="url(#bulletExcellent)" rx="4"/>
- <rect x="180" y="32" width="880" height="26" fill="url(#actualBarGreen)" rx="3"/>
- <line x1="990" y1="15" x2="990" y2="75" stroke="#E74C3C" stroke-width="4"/>
+ <rect x="180" y="20" width="900" height="50" fill="url(#bgFair)" rx="4"/>
+ <rect x="180" y="20" width="720" height="50" fill="url(#bgGood)" rx="4"/>
+ <rect x="180" y="20" width="540" height="50" fill="url(#bgExcellent)" rx="4"/>
+ <rect x="180" y="32" width="880" height="26" fill="url(#actualBarGreen)" rx="3" filter="url(#bulletShadow)"/>
+ <line x1="990" y1="15" x2="990" y2="75" stroke="#1E293B" stroke-width="4"/>
<text x="1050" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="bold" fill="#FFFFFF">
+ font-size="15" font-weight="bold" fill="#FFFFFF" text-anchor="end">
<tspan>88%</tspan>
</text>
<text x="1120" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="20" font-weight="bold" fill="#4CAF50">
+ font-size="20" font-weight="bold" fill="#10B981">
<tspan>98%</tspan>
</text>
</g>
@@ -154,17 +174,17 @@
<tspan>Target: 25%</tspan>
</text>
- <rect x="180" y="20" width="900" height="50" fill="url(#bulletFair)" rx="4"/>
- <rect x="180" y="20" width="720" height="50" fill="url(#bulletGood)" rx="4"/>
- <rect x="180" y="20" width="540" height="50" fill="url(#bulletExcellent)" rx="4"/>
- <rect x="180" y="32" width="648" height="26" fill="url(#actualBarOrange)" rx="3"/>
- <line x1="1080" y1="15" x2="1080" y2="75" stroke="#E74C3C" stroke-width="4"/>
- <text x="815" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="bold" fill="#FFFFFF">
+ <rect x="180" y="20" width="900" height="50" fill="url(#bgFair)" rx="4"/>
+ <rect x="180" y="20" width="720" height="50" fill="url(#bgGood)" rx="4"/>
+ <rect x="180" y="20" width="540" height="50" fill="url(#bgExcellent)" rx="4"/>
+ <rect x="180" y="32" width="648" height="26" fill="url(#actualBarOrange)" rx="3" filter="url(#bulletShadow)"/>
+ <line x1="1080" y1="15" x2="1080" y2="75" stroke="#1E293B" stroke-width="4"/>
+ <text x="818" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="15" font-weight="bold" fill="#FFFFFF" text-anchor="end">
<tspan>18%</tspan>
</text>
<text x="1120" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="20" font-weight="bold" fill="#FF9800">
+ font-size="20" font-weight="bold" fill="#F59E0B">
<tspan>72%</tspan>
</text>
</g>
@@ -180,34 +200,34 @@
<tspan>Budget: $80M</tspan>
</text>
- <rect x="180" y="20" width="900" height="50" fill="url(#bulletExcellent)" rx="4"/>
- <rect x="720" y="20" width="360" height="50" fill="url(#bulletGood)" rx="4"/>
- <rect x="900" y="20" width="180" height="50" fill="url(#bulletFair)" rx="4"/>
- <rect x="180" y="32" width="855" height="26" fill="#E74C3C" rx="3"/>
- <line x1="720" y1="15" x2="720" y2="75" stroke="#4CAF50" stroke-width="4"/>
- <text x="1020" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="16" font-weight="bold" fill="#FFFFFF">
+ <rect x="180" y="20" width="900" height="50" fill="url(#bgExcellent)" rx="4"/>
+ <rect x="720" y="20" width="360" height="50" fill="url(#bgGood)" rx="4"/>
+ <rect x="900" y="20" width="180" height="50" fill="url(#bgFair)" rx="4"/>
+ <rect x="180" y="32" width="855" height="26" fill="url(#actualBarRed)" rx="3" filter="url(#bulletShadow)"/>
+ <line x1="720" y1="15" x2="720" y2="75" stroke="#1E293B" stroke-width="4"/>
+ <text x="1025" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="15" font-weight="bold" fill="#FFFFFF" text-anchor="end">
<tspan>$95M</tspan>
</text>
<text x="1120" y="50" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="20" font-weight="bold" fill="#E74C3C">
+ font-size="20" font-weight="bold" fill="#EF4444">
<tspan>119%</tspan>
</text>
</g>
<!-- Insight box -->
<g id="insight">
- <rect x="80" y="630" width="1120" height="60" rx="6" fill="#E3F2FD" stroke="#2196F3" stroke-width="2"/>
- <text x="100" y="655" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="16" font-weight="600" fill="#2C3E50">
- <tspan>Summary:</tspan>
+ <rect x="80" y="620" width="1120" height="70" rx="8" fill="#F8FAFC" stroke="#E2E8F0" stroke-width="1" filter="url(#bulletShadow)"/>
+ <text x="110" y="650" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="16" font-weight="600" fill="#1E293B">
+ <tspan>💡 Summary:</tspan>
</text>
- <text x="200" y="655" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="15" fill="#5D6D7E">
+ <text x="220" y="650" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="15" fill="#475569">
<tspan>3 KPIs exceeded targets. Market share growth needs strengthening. Cost control requires attention.</tspan>
</text>
- <text x="100" y="678" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#7F8C8D">
+ <text x="110" y="675" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" font-weight="500" fill="#64748B">
<tspan>Recommendation: Prioritize cutting non-core project expenses while increasing marketing budget.</tspan>
</text>
</g>
diff --git a/skills/ppt-master/templates/charts/butterfly_chart.svg b/skills/ppt-master/templates/charts/butterfly_chart.svg
index 891bc010..b15beffc 100644
--- a/skills/ppt-master/templates/charts/butterfly_chart.svg
+++ b/skills/ppt-master/templates/charts/butterfly_chart.svg
@@ -7,27 +7,26 @@
-->
<defs>
- <!-- 左侧渐变(蓝色) -->
+ <!-- 左侧渐变(科技蓝) -->
<linearGradient id="leftGrad" x1="100%" y1="0%" x2="0%" y2="0%">
- <stop offset="0%" style="stop-color:#2196F3;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#1976D2;stop-opacity:1" />
+ <stop offset="0%" style="stop-color:#3B82F6;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#1D4ED8;stop-opacity:1" />
</linearGradient>
- <!-- 右侧渐变(粉色) -->
+ <!-- 右侧渐变(优雅粉) -->
<linearGradient id="rightGrad" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" style="stop-color:#E91E63;stop-opacity:1" />
- <stop offset="100%" style="stop-color:#F06292;stop-opacity:1" />
+ <stop offset="0%" style="stop-color:#EC4899;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#BE185D;stop-opacity:1" />
</linearGradient>
- <!-- 阴影 -->
- <filter id="barShadow">
- <feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
- <feOffset dx="0" dy="1"/>
- <feComponentTransfer>
- <feFuncA type="linear" slope="0.2"/>
- </feComponentTransfer>
+ <!-- 标准阴影滤镜 -->
+ <filter id="barShadow" x="-15%" y="-15%" width="130%" height="130%">
+ <feGaussianBlur in="SourceAlpha" stdDeviation="3"/>
+ <feOffset dx="0" dy="2" result="offsetBlur"/>
+ <feFlood flood-color="#000000" flood-opacity="0.15" result="shadowColor"/>
+ <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
<feMerge>
- <feMergeNode/>
+ <feMergeNode in="shadow"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
@@ -64,38 +63,38 @@
<!-- 图表区域 -->
<g id="chartArea">
- <!-- 中轴线 -->
- <line x1="640" y1="160" x2="640" y2="620" stroke="#BDC3C7" stroke-width="2"/>
+ <!-- 中轴标签背景区 (替代单一中轴线,提升可读性) -->
+ <rect x="580" y="160" width="120" height="460" fill="#F8FAFC" rx="4"/>
<!-- 左侧X轴刻度 -->
- <text x="160" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="120" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>20%</tspan></text>
- <text x="280" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="240" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>15%</tspan></text>
- <text x="400" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="360" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>10%</tspan></text>
- <text x="520" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="480" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>5%</tspan></text>
<!-- 右侧X轴刻度 -->
- <text x="760" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="800" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>5%</tspan></text>
- <text x="880" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="920" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>10%</tspan></text>
- <text x="1000" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="1040" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>15%</tspan></text>
- <text x="1120" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ <text x="1160" y="645" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
font-size="13" fill="#7F8C8D" text-anchor="middle"><tspan>20%</tspan></text>
<!-- 网格线 -->
- <line x1="160" y1="160" x2="160" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="280" y1="160" x2="280" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="400" y1="160" x2="400" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="520" y1="160" x2="520" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="760" y1="160" x2="760" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="880" y1="160" x2="880" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="1000" y1="160" x2="1000" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
- <line x1="1120" y1="160" x2="1120" y2="620" stroke="#E0E0E0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="120" y1="160" x2="120" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="240" y1="160" x2="240" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="360" y1="160" x2="360" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="480" y1="160" x2="480" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="800" y1="160" x2="800" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="920" y1="160" x2="920" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="1040" y1="160" x2="1040" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
+ <line x1="1160" y1="160" x2="1160" y2="620" stroke="#E2E8F0" stroke-width="1" stroke-dasharray="4,4"/>
<!--
数据说明:
@@ -108,134 +107,135 @@
-->
<!-- 年龄段1: 60+ -->
- <g transform="translate(0, 168)">
- <!-- 左侧条形 (男性 3%) -->
- <rect x="568" y="0" width="72" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="555" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>3%</tspan></text>
+ <g id="row-1" transform="translate(0, 168)">
+ <rect x="528" y="0" width="72" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="518" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>3%</tspan></text>
- <!-- 中间标签 -->
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>60+</tspan></text>
- <!-- 右侧条形 (女性 4%) -->
- <rect x="640" y="0" width="96" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="745" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>4%</tspan></text>
+ <rect x="680" y="0" width="96" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="786" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>4%</tspan></text>
</g>
<!-- 年龄段2: 50-59 -->
- <g transform="translate(0, 224)">
- <rect x="448" y="0" width="192" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="435" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>8%</tspan></text>
+ <g id="row-2" transform="translate(0, 224)">
+ <rect x="408" y="0" width="192" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="398" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>8%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>50-59</tspan></text>
- <rect x="640" y="0" width="240" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="890" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>10%</tspan></text>
+ <rect x="680" y="0" width="240" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="930" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>10%</tspan></text>
</g>
<!-- 年龄段3: 40-49 -->
- <g transform="translate(0, 280)">
- <rect x="280" y="0" width="360" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="267" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>15%</tspan></text>
+ <g id="row-3" transform="translate(0, 280)">
+ <rect x="240" y="0" width="360" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="230" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>15%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>40-49</tspan></text>
- <rect x="640" y="0" width="408" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="1058" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>17%</tspan></text>
+ <rect x="680" y="0" width="408" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="1098" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>17%</tspan></text>
</g>
<!-- 年龄段4: 30-39 (峰值) -->
- <g transform="translate(0, 336)">
- <rect x="208" y="0" width="432" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="195" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" font-weight="bold" fill="#2196F3" text-anchor="end"><tspan>18%</tspan></text>
+ <g id="row-4" transform="translate(0, 336)">
+ <rect x="168" y="0" width="432" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="158" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="bold" fill="#1D4ED8" text-anchor="end"><tspan>18%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>30-39</tspan></text>
- <rect x="640" y="0" width="360" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="1010" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>15%</tspan></text>
+ <rect x="680" y="0" width="360" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="1050" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="bold" fill="#BE185D"><tspan>15%</tspan></text>
</g>
<!-- 年龄段5: 25-29 -->
- <g transform="translate(0, 392)">
- <rect x="256" y="0" width="384" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="243" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>16%</tspan></text>
+ <g id="row-5" transform="translate(0, 392)">
+ <rect x="216" y="0" width="384" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="206" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>16%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>25-29</tspan></text>
- <rect x="640" y="0" width="336" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="986" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>14%</tspan></text>
+ <rect x="680" y="0" width="336" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="1026" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>14%</tspan></text>
</g>
<!-- 年龄段6: 20-24 -->
- <g transform="translate(0, 448)">
- <rect x="352" y="0" width="288" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="339" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>12%</tspan></text>
+ <g id="row-6" transform="translate(0, 448)">
+ <rect x="312" y="0" width="288" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="302" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>12%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>20-24</tspan></text>
- <rect x="640" y="0" width="240" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="890" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>10%</tspan></text>
+ <rect x="680" y="0" width="240" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="930" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>10%</tspan></text>
</g>
<!-- 年龄段7: 18-19 -->
- <g transform="translate(0, 504)">
- <rect x="496" y="0" width="144" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="483" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>6%</tspan></text>
+ <g id="row-7" transform="translate(0, 504)">
+ <rect x="456" y="0" width="144" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="446" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>6%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>18-19</tspan></text>
- <rect x="640" y="0" width="120" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="770" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>5%</tspan></text>
+ <rect x="680" y="0" width="120" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="810" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>5%</tspan></text>
</g>
<!-- 年龄段8: <18 -->
- <g transform="translate(0, 560)">
- <rect x="592" y="0" width="48" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
- <text x="579" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#2196F3" text-anchor="end"><tspan>2%</tspan></text>
+ <g id="row-8" transform="translate(0, 560)">
+ <rect x="552" y="0" width="48" height="50" rx="4" fill="url(#leftGrad)" filter="url(#barShadow)"/>
+ <text x="542" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#1D4ED8" text-anchor="end"><tspan>2%</tspan></text>
<text x="640" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
font-size="15" font-weight="600" fill="#2C3E50" text-anchor="middle"><tspan>&lt;18</tspan></text>
- <rect x="640" y="0" width="72" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
- <text x="722" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
- font-size="14" fill="#E91E63"><tspan>3%</tspan></text>
+ <rect x="680" y="0" width="72" height="50" rx="4" fill="url(#rightGrad)" filter="url(#barShadow)"/>
+ <text x="762" y="32" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
+ font-size="14" font-weight="600" fill="#BE185D"><tspan>3%</tspan></text>
</g>
</g>
-
+
<!-- 统计摘要 -->
<g id="summary" transform="translate(60, 665)">
- <rect x="0" y="0" width="280" height="40" rx="8" fill="#E3F2FD" stroke="#2196F3" stroke-width="1"/>
- <text x="20" y="26" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#1976D2">
- <tspan>👨 男性用户: 52% | 平均年龄: 34岁</tspan>
- </text>
+ <g id="summary-male">
+ <rect x="0" y="0" width="280" height="40" rx="8" fill="#EFF6FF" stroke="#3B82F6" stroke-width="1"/>
+ <text x="20" y="26" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" fill="#1D4ED8">
+ <tspan>👨 男性用户: 52% | 平均年龄: 34岁</tspan>
+ </text>
+ </g>
- <rect x="300" y="0" width="280" height="40" rx="8" fill="#FCE4EC" stroke="#E91E63" stroke-width="1"/>
- <text x="320" y="26" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
- font-size="14" fill="#C2185B">
- <tspan>👩 女性用户: 48% | 平均年龄: 32岁</tspan>
- </text>
+ <g id="summary-female" transform="translate(300, 0)">
+ <rect x="0" y="0" width="280" height="40" rx="8" fill="#FDF2F8" stroke="#EC4899" stroke-width="1"/>
+ <text x="20" y="26" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif"
+ font-size="14" fill="#BE185D">
+ <tspan>👩 女性用户: 48% | 平均年龄: 32岁</tspan>
+ </text>
+ </g>
</g>
<!-- 数据来源 -->