# tanishktewetia/placement_data_analysis architecture

> Architecture diagram of the GitHub repository tanishktewetia/placement_data_analysis, 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/tanishktewetia/placement_data_analysis
- Repository: https://github.com/tanishktewetia/placement_data_analysis

## Overview

Placement Data Analysis is a static, browser-based dashboard for exploring normalized campus placement drives. The main workflow is bundled raw CSVs → normalization and quality flags → compact dataset → browser loading, filtering, KPIs, charts, and a sortable table. Users can also upload CSVs for in-browser normalization, with data kept locally. README documents these capabilities; the app excerpt is partial, so internal UI wiring beyond the shown calls is omitted.

Main entry points: [`app.js`](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js) (Upload and local storage), [`scripts/normalize.py`](https://github.com/tanishktewetia/placement_data_analysis/blob/main/scripts/normalize.py) (Batch normalizer), [`normalize.js`](https://github.com/tanishktewetia/placement_data_analysis/blob/main/normalize.js) (Browser CSV normalizer), [`data/placements.json`](https://github.com/tanishktewetia/placement_data_analysis/blob/main/data/placements.json) (Normalized dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cleaning["Data cleaning"]
  node_rawcsv["Batch CSVs"]
  node_pyclean["Batch normalizer<br/>[normalize.py]"]
  node_dataset[("Normalized dataset<br/>[placements.json]")]
  node_cleancsv["Clean CSV export"]
end

subgraph group_dashboard["Dashboard"]
  node_app["Dashboard app<br/>[app.js]"]
  node_filters["Filtering and eligibility<br/>[app.js]"]
  node_metrics["KPIs and aggregations<br/>[app.js]"]
  node_visuals["Charts and tier guide<br/>[app.js]"]
  node_table["Sortable drive table<br/>[app.js]"]
  node_export["CSV download<br/>[app.js]"]
end

subgraph group_uploads["Custom data"]
  node_upload["Upload and local storage<br/>[app.js]"]
  node_normalizer["Browser CSV normalizer<br/>[normalize.js]"]
  node_localdata[("Saved uploads")]
end

node_user(("Dashboard user"))
node_csvuser(("CSV provider"))

node_rawcsv -->|"normalizes"| node_pyclean
node_pyclean -->|"writes JSON"| node_dataset
node_pyclean -->|"writes CSV"| node_cleancsv
node_app -->|"loads"| node_dataset
node_app -->|"updates"| node_filters
node_filters -->|"aggregates"| node_metrics
node_metrics -->|"renders"| node_visuals
node_metrics -->|"renders"| node_table
node_user -->|"uses"| node_app
node_user -->|"uploads CSV"| node_upload
node_csvuser -->|"provides CSV"| node_upload
node_upload -->|"cleans in browser"| node_normalizer
node_normalizer -.->|"returns records"| node_upload
node_upload -->|"stores locally"| node_localdata
node_upload -->|"switches dataset"| node_app
node_app -->|"downloads view"| node_export
node_user -->|"requests CSV"| node_export

click node_rawcsv "https://github.com/tanishktewetia/placement_data_analysis/tree/main/data/raw"
click node_pyclean "https://github.com/tanishktewetia/placement_data_analysis/blob/main/scripts/normalize.py"
click node_dataset "https://github.com/tanishktewetia/placement_data_analysis/blob/main/data/placements.json"
click node_cleancsv "https://github.com/tanishktewetia/placement_data_analysis/blob/main/data/placements_clean.csv"
click node_app "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_filters "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_metrics "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_visuals "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_table "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_export "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_upload "https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js"
click node_normalizer "https://github.com/tanishktewetia/placement_data_analysis/blob/main/normalize.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_rawcsv,node_pyclean,node_dataset,node_cleancsv,node_user toneBlue
class node_app,node_filters,node_metrics,node_visuals,node_table,node_export toneAmber
class node_upload,node_normalizer,node_localdata toneMint
class node_csvuser toneIndigo
```

## Components

### Data cleaning

- [Batch CSVs](https://github.com/tanishktewetia/placement_data_analysis/tree/main/data/raw): `data/raw`
- [Batch normalizer](https://github.com/tanishktewetia/placement_data_analysis/blob/main/scripts/normalize.py): `scripts/normalize.py`
- [Normalized dataset](https://github.com/tanishktewetia/placement_data_analysis/blob/main/data/placements.json): `data/placements.json`
- [Clean CSV export](https://github.com/tanishktewetia/placement_data_analysis/blob/main/data/placements_clean.csv): `data/placements_clean.csv`

### Dashboard

- [Dashboard app](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`
- [Filtering and eligibility](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`
- [KPIs and aggregations](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`
- [Charts and tier guide](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`
- [Sortable drive table](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`
- [CSV download](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`

### Custom data

- [Upload and local storage](https://github.com/tanishktewetia/placement_data_analysis/blob/main/app.js): `app.js`
- [Browser CSV normalizer](https://github.com/tanishktewetia/placement_data_analysis/blob/main/normalize.js): `normalize.js`
- **Saved uploads**

### Other components

- **Dashboard user**
- **CSV provider**

## Connections

- Batch CSVs → Batch normalizer: normalizes (evidence: `scripts/normalize.py`)
- Batch normalizer → Normalized dataset: writes JSON (evidence: `scripts/normalize.py`)
- Batch normalizer → Clean CSV export: writes CSV (evidence: `scripts/normalize.py`)
- Dashboard app → Normalized dataset: loads (evidence: `README.md`)
- Dashboard app → Filtering and eligibility: updates (evidence: `app.js`)
- Filtering and eligibility → KPIs and aggregations: aggregates (evidence: `app.js`)
- KPIs and aggregations → Charts and tier guide: renders (evidence: `app.js`)
- KPIs and aggregations → Sortable drive table: renders (evidence: `README.md`)
- Dashboard user → Dashboard app: uses (evidence: `README.md`)
- Dashboard user → Upload and local storage: uploads CSV (evidence: `README.md`)
- CSV provider → Upload and local storage: provides CSV (evidence: `README.md`)
- Upload and local storage → Browser CSV normalizer: cleans in browser (evidence: `README.md`)
- Browser CSV normalizer → Upload and local storage: returns records
- Upload and local storage → Saved uploads: stores locally (evidence: `app.js`)
- Upload and local storage → Dashboard app: switches dataset (evidence: `README.md`)
- Dashboard app → CSV download: downloads view (evidence: `README.md`)
- Dashboard user → CSV download: requests CSV (evidence: `README.md`)
