# nochebuenaelonin-rgb/producto-final architecture

> Architecture diagram of the GitHub repository nochebuenaelonin-rgb/producto-final, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nochebuenaelonin-rgb/producto-final
- Repository: https://github.com/nochebuenaelonin-rgb/producto-final

## Overview

This is a static FIEC sanitary-supply availability dashboard: users load or fall back to a CSV, inspect calculated indicators, spatial-temporal summaries, descriptive statistics and hypothesis results, then download data. The sole substantial runtime module combines parsing, calculations, rendering and interactions, so these are functional responsibilities within one source path rather than separately verified modules. The README documents the broader capabilities; omitted source excerpts limit evidence for internal call links, which are therefore not asserted.

Main entry points: [`js/app.js`](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js) (Load and validate), [`data/matriz_maestra.csv`](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/data/matriz_maestra.csv) (Master CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data input"]
  node_csv["Master CSV<br/>[matriz_maestra.csv]"]
  node_loader["Load and validate<br/>[app.js]"]
  node_backup["Embedded fallback<br/>[app.js]"]
end

subgraph group_analysis["Analysis"]
  node_indicators["Protocol indicators<br/>[app.js]"]
  node_stats["Descriptive statistics<br/>[app.js]"]
  node_tests["Hypothesis tests<br/>[app.js]"]
  node_hypotheses["Hypothesis verdicts<br/>[app.js]"]
end

subgraph group_dashboard["Dashboard"]
  node_dashboard["Results dashboard<br/>[app.js]"]
  node_charts["Charts and summaries<br/>[app.js]"]
  node_matrix["Filterable matrix<br/>[app.js]"]
  node_export["CSV downloads<br/>[app.js]"]
end

node_visitor(("Dashboard user"))
node_chartjs["Chart.js"]
node_jstat["jStat"]

node_visitor -->|"views"| node_dashboard
node_csv -->|"fetches"| node_loader
node_loader -->|"falls back"| node_backup
node_loader -.->|"validated records"| node_indicators
node_loader -.->|"validated records"| node_stats
node_loader -.->|"validated records"| node_tests
node_loader -.->|"validated records"| node_hypotheses
node_indicators -.->|"displays"| node_dashboard
node_stats -.->|"displays"| node_dashboard
node_tests -.->|"displays"| node_dashboard
node_hypotheses -.->|"displays"| node_dashboard
node_dashboard -.->|"renders"| node_charts
node_charts -->|"uses"| node_chartjs
node_tests -->|"calculates p-values"| node_jstat
node_visitor -.->|"filters and sorts"| node_matrix
node_visitor -->|"downloads"| node_export

click node_csv "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/data/matriz_maestra.csv"
click node_loader "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_backup "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_indicators "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_stats "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_tests "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_hypotheses "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_dashboard "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_charts "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_matrix "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"
click node_export "https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_csv,node_loader,node_backup,node_visitor toneBlue
class node_indicators,node_stats,node_tests,node_hypotheses toneAmber
class node_dashboard,node_charts,node_matrix,node_export toneMint
class node_chartjs,node_jstat toneIndigo
```

## Components

### Data input

- [Master CSV](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/data/matriz_maestra.csv): `data/matriz_maestra.csv`
- [Load and validate](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [Embedded fallback](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`

### Analysis

- [Protocol indicators](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [Descriptive statistics](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [Hypothesis tests](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [Hypothesis verdicts](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`

### Dashboard

- [Results dashboard](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [Charts and summaries](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [Filterable matrix](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`
- [CSV downloads](https://github.com/nochebuenaelonin-rgb/producto-final/blob/main/js/app.js): `js/app.js`

### Other components

- **Dashboard user**
- **Chart.js**
- **jStat**

## Connections

- Dashboard user → Results dashboard: views (evidence: `README.md`)
- Master CSV → Load and validate: fetches (evidence: `js/app.js`)
- Load and validate → Embedded fallback: falls back (evidence: `js/app.js`)
- Load and validate → Protocol indicators: validated records (evidence: `js/app.js`)
- Load and validate → Descriptive statistics: validated records (evidence: `js/app.js`)
- Load and validate → Hypothesis tests: validated records (evidence: `js/app.js`)
- Load and validate → Hypothesis verdicts: validated records (evidence: `js/app.js`)
- Protocol indicators → Results dashboard: displays (evidence: `js/app.js`)
- Descriptive statistics → Results dashboard: displays (evidence: `js/app.js`)
- Hypothesis tests → Results dashboard: displays (evidence: `js/app.js`)
- Hypothesis verdicts → Results dashboard: displays (evidence: `js/app.js`)
- Results dashboard → Charts and summaries: renders (evidence: `js/app.js`)
- Charts and summaries → Chart.js: uses (evidence: `README.md`)
- Hypothesis tests → jStat: calculates p-values (evidence: `README.md`)
- Dashboard user → Filterable matrix: filters and sorts
- Dashboard user → CSV downloads: downloads (evidence: `README.md`)
