Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

Discrete Structures CPI Analysis Website

This project is a powerful data storytelling website built to visualize and analyze Consumer Price Index (CPI) data across 17 major cities in Pakistan (2023-2025). The platform uses detailed price similarity networks to precisely identify economic hubs and analyze deep market integration.

Features & Highlights

  • Interactive Visualizations: Dynamic charts using Plotly to dissect and explore large CPI datasets.
  • Economic Network Graphing: Mathematical modeling using NetworkX to map correlations and price similarities between cities.
  • Clean Animations: Framer Motion components providing a professional, polished feel.
  • Automated Data Processing: Custom Python scripts to efficiently extract, process, and generate static JSON endpoints.

Application Screenshots

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript & Python
  • Styling: Tailwind CSS
  • Visualization: Plotly.js (react-plotly.js) & Framer Motion
  • Data Engineering: Python (NetworkX, Pandas, NumPy)

Project Structure

  • web/: Next.js frontend application.
    • src/app/: Core App router pages.
    • src/components/: Reusable, interactive UI/visualization elements.
    • public/data/: Static JSON data injected directly from the analysis engine.
  • Code/: Advanced Python scripts parsing and generating network analysis maps.

Local Execution and Dev Environment

Prerequisites

  • Node.js 18+
  • Python 3.8+ (for data regeneration)

Running the Website

  1. Navigate to the web directory:
    cd web
  2. Install frontend dependencies:
    npm install
  3. Run the development server:
    npm run dev
  4. Access the dashboard cleanly at http://localhost:3000.

Regenerating Data

If modifying analysis logic or extending the dataset range:

  1. Navigate to the script directory:
    cd "Code/Graphs Generator/DataCodefiles"
  2. Run the export script:
    python3 export_data.py

Author

  • Muhammad Dyen Asif: Lead Developer & Analyst

About

Pakistan's Consumer Price Index across 17 cities (2023-2025) modelled as a price-similarity network to identify economic hubs and quantify market integration. Python, NetworkX, Plotly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /