The Air Quality Dashboard is a frontend application built with React and Material-UI for visualizing air quality data. It connects to the Air Quality API backend to ingest and display data in interactive charts and tables.
- Node.js (>=16.0)
- npm (>=8.0)
- Clone the repository:
git clone https://github.com/sharmaraju352/oi-fe cd oi-fe
- Install dependencies:
npm install
To start the application in development mode:
npm start
To build the application for production:
npm run build
To preview the production build:
npm run preview
-
Data Visualization:
- Interactive line charts displaying air quality parameters over time.
- Supports hourly and daily aggregation intervals.
-
Data Ingestion:
- Upload air quality datasets in CSV format.
- Supports batch ingestion with error handling.
-
Filtering and Querying:
- Select air quality parameters to visualize.
- Filter data by custom date ranges or predefined intervals (e.g., last 1 day, last 1 month).
-
Pagination:
- Tabular data with pagination for easy browsing.
To upload a CSV file, use the "Upload CSV File" button in the application. The default file AirQualityUCI.csv
is available in the root directory and can be used for testing.
- Select parameters (e.g., CO(GT), NOx(GT)) from the dropdown menu.
- Choose a predefined interval (e.g., 1 day, 1 month) or set a custom date range.
- View the resulting chart and table.