diff --git a/project/VERSION b/project/VERSION
index ee1372d..7179039 100644
--- a/project/VERSION
+++ b/project/VERSION
@@ -1 +1 @@
-0.2.2
+0.2.3
diff --git a/project/apps/admin/package-lock.json b/project/apps/admin/package-lock.json
index 60c200e..696a288 100644
--- a/project/apps/admin/package-lock.json
+++ b/project/apps/admin/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@mercadodevida/admin",
- "version": "0.2.2",
+ "version": "0.2.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@mercadodevida/admin",
- "version": "0.2.2",
+ "version": "0.2.3",
"dependencies": {
"@lexical/history": "^0.49.0",
"@lexical/html": "^0.49.0",
diff --git a/project/apps/admin/package.json b/project/apps/admin/package.json
index d025a8a..4a616ba 100644
--- a/project/apps/admin/package.json
+++ b/project/apps/admin/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercadodevida/admin",
- "version": "0.2.2",
+ "version": "0.2.3",
"private": true,
"scripts": {
"dev": "next dev --port 3001",
diff --git a/project/apps/admin/src/components/reporting/TrendChart.tsx b/project/apps/admin/src/components/reporting/TrendChart.tsx
index 69f62ed..2a58fd2 100644
--- a/project/apps/admin/src/components/reporting/TrendChart.tsx
+++ b/project/apps/admin/src/components/reporting/TrendChart.tsx
@@ -16,28 +16,36 @@ interface TrendChartProps {
export function TrendChart({ data, maxValue, height = 120 }: TrendChartProps) {
if (data.length === 0) return null;
- const width = 100; // percentage-based SVG
- const barWidth = Math.min(3, (width * 0.9) / data.length);
- const gap = Math.max(0.2, (width - barWidth * data.length) / (data.length + 1));
- const chartHeight = height - 34; // leave room for labels
+ const chartWidth = Math.max(420, data.length * 26);
+ const padding = { top: 12, right: 14, bottom: 28, left: 14 };
+ const plotWidth = chartWidth - padding.left - padding.right;
+ const chartHeight = Math.max(60, height - padding.top - padding.bottom);
+ const barWidth = Math.min(16, Math.max(7, (plotWidth / data.length) * 0.62));
+ const gap = Math.max(4, (plotWidth - barWidth * data.length) / Math.max(data.length + 1, 1));
return (