Skip to content

feat: add weather and air quality correlation analytics - #1093

Open
karan-chaos wants to merge 1 commit into
Aditya8369:mainfrom
karan-chaos:feature/weather-health-correlation-dashboard
Open

feat: add weather and air quality correlation analytics#1093
karan-chaos wants to merge 1 commit into
Aditya8369:mainfrom
karan-chaos:feature/weather-health-correlation-dashboard

Conversation

@karan-chaos

@karan-chaos karan-chaos commented Aug 28, 2026

Copy link
Copy Markdown

Summary

#1092
This PR adds weather and air quality correlation analytics to identify
relationships between weather conditions and major AQI pollutants.

Changes

Correlation Analysis

Added Pearson correlation calculations between:

  • Temperature, humidity, and wind
  • PM2.5, PM10, NO₂, O₃, and CO

Interactive Visualizations

Added:

  • Correlation matrix heatmap
  • Scatter chart visualization
  • Dual-axis chart visualization
  • Interactive chart mode toggling

AQI Band Breakdown

Added per-AQI-band correlation analysis to compare weather and pollutant
relationships across different air quality conditions.

Automated Insights

Added automatically generated insights highlighting:

  • Strong positive correlations
  • Strong negative correlations
  • Weak relationships
  • Notable weather and air quality patterns

Technical Implementation

The feature follows existing project conventions:

  • SWR for data fetching and caching
  • i18next for localization
  • Recharts for visualizations
  • CSS Modules for styling
  • Memoized sub-components for optimized rendering

Verification

  • Pearson correlation calculations verified
  • Weather metrics verified
  • AQI metrics verified
  • Correlation heatmap verified
  • Scatter chart verified
  • Dual-axis chart verified
  • Chart toggle verified
  • AQI band breakdown verified
  • Automated insights verified
  • SWR integration verified
  • i18next integration verified
  • Recharts visualizations verified
  • CSS Modules verified

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@karan-chaos is attempting to deploy a commit to the Aditya Mahajan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thank You for Your Contribution! 🎉

Hi @karan-chaos,

Thank you for opening this Pull Request and contributing to our project. We truly appreciate your efforts.

Please make sure that:

  • Your code follows the project's guidelines.
  • You have linked the appropriate issue (if applicable).
  • Screenshots are added for UI/UX changes.
  • Your PR is ready for review.

The maintainer @Aditya8369 will review your PR shortly!

Happy Contributing! 🚀

@github-actions github-actions Bot added the ECSoC26 Contributions considered under ECSoC'26 label Aug 28, 2026
@Aditya8369

Copy link
Copy Markdown
Owner

@karan-chaos conflicts

Add a new dashboard module that computes Pearson correlations between
weather variables (temperature, humidity, wind speed) and air quality
metrics (AQI, PM2.5, PM10, NO₂, O₃, CO). Includes an interactive
correlation matrix heatmap, scatter/dual-axis charts, per-AQI-band
breakdown, and auto-generated insights with severity ratings.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@karan-chaos
karan-chaos force-pushed the feature/weather-health-correlation-dashboard branch from f95b162 to 8bb9a96 Compare August 29, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Contributions considered under ECSoC'26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants