-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorrelacionBivariable.html
More file actions
74 lines (66 loc) · 2.39 KB
/
correlacionBivariable.html
File metadata and controls
74 lines (66 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Análisis de Correlación y Regresión</title>
<link rel="stylesheet" href="./css/bien.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
/>
</head>
<body>
<nav class="menu">
<div>
<a href="index.html" class="logo">
<img src="img/logo.svg" alt="Logo" width="150" />
</a>
<zh3>Herramientas</zh3>
</div>
</nav>
<main class="contenido">
<h1>Análisis de Correlación y Regresión Bivariada</h1>
<div class="controls">
<!-- 1. File upload -->
<div>
<label for="excelFile">Cargar Excel:</label><br />
<input type="file" id="excelFile" accept=".xlsx, .xls" />
</div>
<!-- 2. Botón de cálculo -->
<div>
<label> </label><br />
<button id="calculateButton" disabled>
<i class="fas fa-calculator"></i> Calcular
</button>
</div>
<!-- 3. Selector de regresión a visualizar -->
<div>
<label for="regressionSelect">Ver regresión:</label><br />
<select id="regressionSelect" disabled>
<option value="linear">Lineal</option>
<option value="exponential">Exponencial</option>
<option value="logarithmic">Logarítmica</option>
</select>
</div>
<!-- 4. Predicción futura -->
<div>
<label for="predictX">Predecir Y para X =</label><br />
<input type="number" id="predictX" step="any" disabled />
<button id="predictButton" disabled>
<i class="fas fa-chart-line"></i> Predecir
</button>
</div>
</div>
<!-- 5. Punto fuerte (mejor R) -->
<div id="bestFit" style="margin: 1rem 0; font-weight: bold"></div>
<!-- 6. Área de resultados -->
<div id="resultsArea"></div>
<canvas id="GraficaCanvas" width="400" height="300"></canvas>
</main>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.sheetjs.com/xlsx-0.20.0/package/dist/xlsx.full.min.js"></script>
<script src="js/menu.js"></script>
<script type="module" src="js/correlacionBivariableUi.js"></script>
</body>
</html>