From 773f4b9a561c8fb3592f0e5469c962f19b34338d Mon Sep 17 00:00:00 2001 From: Christian Gomez Date: Thu, 18 Dec 2025 09:31:26 -0600 Subject: [PATCH] Adaptando graficas a otro tipo de pantallas --- src/pages/Estadisticas.tsx | 77 +++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/src/pages/Estadisticas.tsx b/src/pages/Estadisticas.tsx index 9746204..c107455 100644 --- a/src/pages/Estadisticas.tsx +++ b/src/pages/Estadisticas.tsx @@ -205,7 +205,7 @@ const Estadisticas = () => { Identidad de Género
- + {
{/* Gráfica de Barras */} -
-

+
+

Cantidad por Género

- - + + @@ -266,7 +271,7 @@ const Estadisticas = () => { Distribución por Edad

- + {
{/* Gráfica de Línea - Edad */} -
-

+
+

Distribución por Rango de Edad

- - + + { dataKey="count" stroke="#FF6B9D" strokeWidth={3} - dot={{ fill: "#FF6B9D", r: 6 }} - activeDot={{ r: 8 }} + dot={{ fill: "#FF6B9D", r: 5 }} + activeDot={{ r: 7 }} /> @@ -331,7 +339,7 @@ const Estadisticas = () => { Años de Experiencia

- + { {/* Sección de Especialidades */}
{/* Gráfica de Pastel - Especialidades */} -
-

+
+

Especialidades

- + { labelLine={false} label={({ specialty_group, percentage }) => { // Solo mostrar etiquetas para porcentajes mayores a 2% - if (percentage > 2) { + if (percentage > 3) { return `${specialty_group}: ${percentage}%`; } return ''; }} - outerRadius={180} + outerRadius={150} fill="#8884d8" dataKey="count" > @@ -395,34 +403,35 @@ const Estadisticas = () => { {/* Sección de Tecnologías */}
{/* Gráfica de Barras - Tecnologías */} -
-

+
+

Tecnologías

- + b.mention_count - a.mention_count)} layout="vertical" - margin={{ top: 5, right: 30, left: 150, bottom: 5 }} + margin={{ top: 5, right: 8, left: 80, bottom: 5 }} > {datosTecnologias.map((entry, index) => (