- {data.map((item, index) => {
- const maxRevenue = Math.max(...data.map(d => d.revenue));
- const height = maxRevenue > 0 ? (item.revenue / maxRevenue) * 100 : 0;
-
- return (
-
+ {/* Chart */}
+
+
+
+
+
+ `£${(value / 1000).toFixed(0)}k`}
+ />
+ } />
+
+
+
{/* Summary stats */}
diff --git a/lib/services/analytics-service.ts b/lib/services/analytics-service.ts
index 7e37177..ca4ac6f 100644
--- a/lib/services/analytics-service.ts
+++ b/lib/services/analytics-service.ts
@@ -63,6 +63,8 @@ export interface CustomerInsights {
averageOrderValue: number;
firstOrder: string;
lastOrder: string;
+ displayName?: string;
+ username?: string;
}>;
averageOrdersPerCustomer: string;
}
diff --git a/package-lock.json b/package-lock.json
index 503854e..8de87b8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "my-v0-project",
- "version": "1.1.7",
+ "version": "2.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "my-v0-project",
- "version": "1.1.7",
+ "version": "2.0.0",
"dependencies": {
"@hookform/resolvers": "^3.9.1",
"@radix-ui/react-accordion": "^1.2.2",
@@ -61,7 +61,7 @@
"react-hook-form": "^7.54.1",
"react-markdown": "^10.0.0",
"react-resizable-panels": "^2.1.7",
- "recharts": "2.15.0",
+ "recharts": "^2.15.0",
"sonner": "^1.7.4",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",
diff --git a/package.json b/package.json
index 1a6f07d..4671542 100644
--- a/package.json
+++ b/package.json
@@ -69,7 +69,7 @@
"react-hook-form": "^7.54.1",
"react-markdown": "^10.0.0",
"react-resizable-panels": "^2.1.7",
- "recharts": "2.15.0",
+ "recharts": "^2.15.0",
"sonner": "^1.7.4",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",