# sarthakdhabale2006-dev/ipl-dashboard architecture

> Architecture diagram of the GitHub repository sarthakdhabale2006-dev/ipl-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sarthakdhabale2006-dev/ipl-dashboard
- Repository: https://github.com/sarthakdhabale2006-dev/ipl-dashboard

## Overview

IPL Dashboard is a browser-based IPL statistics and prediction application. Users load match and delivery data, which is normalized and indexed for dashboard KPIs and charts, then explore match, season, team, and player analysis or estimate a matchup outcome from historical factors. The sampled code supports the data-loading/indexing and the major analysis branches; app.js also fetches CSV paths, but no data files appear in the supplied tree. UI structure and styling are present, while unsampled wiring is not inferred.

Main entry points: [`utils.js`](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/utils.js) (IPL data indexes), [`charts.js`](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/charts.js) (Chart manager), [`dashboard.js`](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/dashboard.js) (Overview KPIs), [`app.js`](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/app.js) (App controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data ingestion"]
  node_controller["App controller<br/>[app.js]"]
  node_data[("IPL data indexes<br/>[utils.js]")]
end

subgraph group_analytics["IPL analysis"]
  node_dashboard["Overview KPIs<br/>[dashboard.js]"]
  node_match["Match analysis<br/>[analysis.js]"]
  node_season["Season analysis<br/>[season.js]"]
  node_team["Team analysis<br/>[team.js]"]
  node_player["Player analysis<br/>[player.js]"]
  node_prediction["Match prediction<br/>[prediction.js]"]
end

subgraph group_presentation["Visualization"]
  node_charts["Chart manager<br/>[charts.js]"]
  node_page["Dashboard interface<br/>[index.html]"]
  node_styles["Interface styling<br/>[dashboard.css]"]
  node_responsive["Responsive styling<br/>[responsive.css]"]
end

node_visitor(("Dashboard user"))

node_visitor -->|"uses"| node_page
node_controller -->|"indexes uploads"| node_data
node_controller -.->|"selects view"| node_dashboard
node_dashboard -.->|"reads metrics"| node_data
node_match -->|"reads match data"| node_data
node_season -->|"reads season data"| node_data
node_team -->|"reads team data"| node_data
node_player -->|"reads player index"| node_data
node_prediction -.->|"reads history"| node_data
node_dashboard -.->|"creates charts"| node_charts
node_match -->|"creates charts"| node_charts
node_season -->|"creates charts"| node_charts
node_team -->|"creates charts"| node_charts
node_player -->|"creates charts"| node_charts

click node_controller "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/app.js"
click node_data "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/utils.js"
click node_dashboard "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/dashboard.js"
click node_match "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/analysis.js"
click node_season "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/season.js"
click node_team "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/team.js"
click node_player "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/player.js"
click node_prediction "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/prediction.js"
click node_charts "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/charts.js"
click node_page "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/index.html"
click node_styles "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/dashboard.css"
click node_responsive "https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/responsive.css"

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_controller,node_data,node_visitor toneBlue
class node_dashboard,node_match,node_season,node_team,node_player,node_prediction toneAmber
class node_charts,node_page,node_styles,node_responsive toneMint
```

## Components

### Data ingestion

- [App controller](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/app.js): `app.js`
- [IPL data indexes](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/utils.js): `utils.js`

### IPL analysis

- [Overview KPIs](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/dashboard.js): `dashboard.js`
- [Match analysis](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/analysis.js): `analysis.js`
- [Season analysis](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/season.js): `season.js`
- [Team analysis](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/team.js): `team.js`
- [Player analysis](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/player.js): `player.js`
- [Match prediction](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/prediction.js): `prediction.js`

### Visualization

- [Chart manager](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/charts.js): `charts.js`
- [Dashboard interface](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/index.html): `index.html`
- [Interface styling](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/dashboard.css): `dashboard.css`
- [Responsive styling](https://github.com/sarthakdhabale2006-dev/ipl-dashboard/blob/main/responsive.css): `responsive.css`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Dashboard interface: uses (evidence: `README.md`)
- App controller → IPL data indexes: indexes uploads (evidence: `app.js`)
- App controller → Overview KPIs: selects view
- Overview KPIs → IPL data indexes: reads metrics
- Match analysis → IPL data indexes: reads match data (evidence: `analysis.js`)
- Season analysis → IPL data indexes: reads season data (evidence: `season.js`)
- Team analysis → IPL data indexes: reads team data (evidence: `team.js`)
- Player analysis → IPL data indexes: reads player index (evidence: `player.js`)
- Match prediction → IPL data indexes: reads history
- Overview KPIs → Chart manager: creates charts
- Match analysis → Chart manager: creates charts (evidence: `analysis.js`)
- Season analysis → Chart manager: creates charts (evidence: `season.js`)
- Team analysis → Chart manager: creates charts (evidence: `team.js`)
- Player analysis → Chart manager: creates charts (evidence: `player.js`)
