# deepakns021/sales-profitability-analysis architecture

> Architecture diagram of the GitHub repository deepakns021/sales-profitability-analysis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deepakns021/sales-profitability-analysis
- Repository: https://github.com/deepakns021/sales-profitability-analysis

## Overview

This repository packages a retail sales and profitability analysis: users can explore findings in a self-contained interactive dashboard, while a notebook provides reproducible analysis and a SQL file provides a portable query template. The documented analysis covers overall performance and discount, geographic, and product segments, with data-quality caveats limiting order- and customer-level conclusions. The README identifies the CSV as the source and the JSON as the dashboard’s source specification. No source excerpts were available, so implementation-level wiring beyond those documented relationships is not inferred.

Main entry points: [`dashboard.html`](https://github.com/deepakns021/sales-profitability-analysis/blob/main/dashboard.html) (Interactive dashboard), [`data/SampleSuperstore.csv`](https://github.com/deepakns021/sales-profitability-analysis/blob/main/data/SampleSuperstore.csv) (Superstore data), [`artifact.json`](https://github.com/deepakns021/sales-profitability-analysis/blob/main/artifact.json) (Dashboard specification), [`sales_profitability_analysis.ipynb`](https://github.com/deepakns021/sales-profitability-analysis/blob/main/sales_profitability_analysis.ipynb) (Reproducible analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Analysis resources"]
  node_csv["Superstore data"]
  node_notebook["Reproducible analysis"]
  node_sql["SQL template"]
end

subgraph group_dashboard["Dashboard"]
  node_artifact["Dashboard specification<br/>[artifact.json]"]
  node_dashboard_html["Interactive dashboard<br/>[dashboard.html]"]
  node_findings["Sales and profit findings<br/>[dashboard.html]"]
end

node_user(("Business user"))

node_csv -->|"analyzes"| node_notebook
node_artifact -->|"specifies"| node_dashboard_html
node_user -->|"explores"| node_dashboard_html
node_dashboard_html -->|"presents"| node_findings

click node_csv "https://github.com/deepakns021/sales-profitability-analysis/blob/main/data/SampleSuperstore.csv"
click node_notebook "https://github.com/deepakns021/sales-profitability-analysis/blob/main/sales_profitability_analysis.ipynb"
click node_sql "https://github.com/deepakns021/sales-profitability-analysis/blob/main/analysis_queries.sql"
click node_artifact "https://github.com/deepakns021/sales-profitability-analysis/blob/main/artifact.json"
click node_dashboard_html "https://github.com/deepakns021/sales-profitability-analysis/blob/main/dashboard.html"
click node_findings "https://github.com/deepakns021/sales-profitability-analysis/blob/main/dashboard.html"

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_notebook,node_sql,node_user toneBlue
class node_artifact,node_dashboard_html,node_findings toneAmber
```

## Components

### Analysis resources

- [Superstore data](https://github.com/deepakns021/sales-profitability-analysis/blob/main/data/SampleSuperstore.csv): `data/SampleSuperstore.csv`
- [Reproducible analysis](https://github.com/deepakns021/sales-profitability-analysis/blob/main/sales_profitability_analysis.ipynb): `sales_profitability_analysis.ipynb`
- [SQL template](https://github.com/deepakns021/sales-profitability-analysis/blob/main/analysis_queries.sql): `analysis_queries.sql`

### Dashboard

- [Dashboard specification](https://github.com/deepakns021/sales-profitability-analysis/blob/main/artifact.json): `artifact.json`
- [Interactive dashboard](https://github.com/deepakns021/sales-profitability-analysis/blob/main/dashboard.html): `dashboard.html`
- [Sales and profit findings](https://github.com/deepakns021/sales-profitability-analysis/blob/main/dashboard.html): `dashboard.html`

### Other components

- **Business user**

## Connections

- Superstore data → Reproducible analysis: analyzes
- Dashboard specification → Interactive dashboard: specifies
- Business user → Interactive dashboard: explores
- Interactive dashboard → Sales and profit findings: presents
