diff --git a/dashboard/src/components/dashboard/StatCards.jsx b/dashboard/src/components/dashboard/StatCards.jsx
index fbb6345..5514af1 100644
--- a/dashboard/src/components/dashboard/StatCards.jsx
+++ b/dashboard/src/components/dashboard/StatCards.jsx
@@ -504,6 +504,66 @@ const ShippingDetails = ({ data }) => {
const locations = data[0]?.shipping?.locations || {};
const methodStats = data[0]?.shipping?.methodStats || [];
+ // Custom colors for the pie chart
+ const COLORS = [
+ 'hsl(171.2 77.2% 53.3%)',
+ 'hsl(200 95% 50%)',
+ 'hsl(280 95% 60%)',
+ 'hsl(340 95% 60%)',
+ 'hsl(40 95% 50%)',
+ 'hsl(120 95% 45%)',
+ 'hsl(240 95% 60%)',
+ 'hsl(30 95% 50%)',
+ ];
+
+ // Custom label renderer for pie chart
+ const renderCustomizedLabel = ({ cx, cy, midAngle, innerRadius, outerRadius, percent, index, name }) => {
+ const RADIAN = Math.PI / 180;
+ // Extend the radius for label placement
+ const radius = outerRadius * 1.2;
+
+ // Calculate position
+ const x = cx + radius * Math.cos(-midAngle * RADIAN);
+ const y = cy + radius * Math.sin(-midAngle * RADIAN);
+
+ // Only show label if percentage is greater than 3%
+ if (percent < 0.03) return null;
+
+ return (
+