diff --git a/src/App.tsx b/src/App.tsx index 1add586..0ea49ac 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2200,80 +2200,6 @@ export default function App() { {tabReady && activeTab === 'customer' && (
- {/* Customer Region Distribution Chart */} -
-
-
-
-

客户运营地区占比

-
-
- - -
-
- {(() => { - const PIE_COLORS = ['#6366f1','#06b6d4','#f59e0b','#f43f5e','#10b981','#a855f7','#94a3b8']; - const pieData = customerPieData; - const grandTotal = pieData.reduce((s,d) => s + d.value, 0); - return ( -
- {/* Donut chart */} -
- - - - {pieData.map((_, i) => ( - - ))} - - [`${value} 辆`, '']} - contentStyle={{ borderRadius: '10px', border: 'none', boxShadow: '0 8px 24px -4px rgba(0,0,0,0.12)', fontSize: 12 }} - /> - - - {/* Center label */} -
- {grandTotal} - -
-
- {/* Custom legend */} -
- {pieData.map((item, i) => { - const pct = grandTotal > 0 ? (item.value / grandTotal * 100) : 0; - const color = PIE_COLORS[i % PIE_COLORS.length]; - return ( -
-
- {item.name} -
-
-
- {item.value} - {pct.toFixed(1)}% -
- ); - })} -
-
- ); - })()} -
{/* Customer Operations Statistics Section */}