An open API service indexing awesome lists of open source software.

https://github.com/suresh-chelani/crop-data-visualization

This project implements data visualization tasks using TypeScript, Vite, Apache ECharts, and Mantine v7. The goal is to process agricultural data, handle missing values, and render a table and a bar chart based on the dataset.
https://github.com/suresh-chelani/crop-data-visualization

apache-echarts data-visualization mantine-v7 typescript vite

Last synced: over 1 year ago
JSON representation

This project implements data visualization tasks using TypeScript, Vite, Apache ECharts, and Mantine v7. The goal is to process agricultural data, handle missing values, and render a table and a bar chart based on the dataset.

Awesome Lists containing this project

README

          

# Crop Data Visualization Project

This project implements data visualization tasks using TypeScript, Vite, Apache ECharts, and Mantine v7. The goal is to process agricultural data, handle missing values, and render a table and a bar chart based on the dataset.

### My UI look like:

## **Landing Page UI**

![Landing Page UI](https://raw.githubusercontent.com/Suresh-Chelani/Crop-Data-Visualization/refs/heads/main/public/images/landingpageUI.png)

### [LIVE DEMO](https://crop-data-visualization.netlify.app/)

## **Production Analysis Table**

This table shows the crop with the maximum and minimum production for each year.

![Production Analysis Table](https://raw.githubusercontent.com/Suresh-Chelani/Crop-Data-Visualization/refs/heads/main/public/images/table.png)

## **Average Yield Bar Chart**

This bar chart displays the average yield of crops across all years (1950-2020).

![Average Yield Bar Chart](https://raw.githubusercontent.com/Suresh-Chelani/Crop-Data-Visualization/refs/heads/main/public/images/barchart.png)

## **Technologies Used**

- **TypeScript**: For strictly typed JavaScript.
- **Vite**: Development environment with fast build times.
- **Apache ECharts**: For creating the bar chart visualizations.
- **Mantine v7**: For creating the table component.

---

## **Features**

1. **Missing Values Handling**: All missing or empty values in the dataset are replaced with `0` before calculations or rendering.
2. **Table Component**:
- Displays the crop with maximum and minimum production for each year.
3. **Bar Chart Component**:
- Displays the average yield of crops (1950–2020) using a bar chart.

---

## **Installation and Setup**

Follow the steps below to set up and run the project:

### **Step 1: Clone the Repository**

```bash
git clone https://github.com/Suresh-Chelani/Crop-Data-Visualization.git
cd Crop-Data-Visualization
```

### **Step 2: Install Dependencies**

yarn install

### **Step 3: Run the Development Server**

yarn dev

### Usage

1. The application will automatically open in your default browser.
2. You will see:
1. A table showing the crop with the maximum and minimum production for each year.
2. A bar chart showing the average yield of crops across all years.

### Scripts

1. yarn dev: Starts the development server and opens the browser.
2. yarn build: Builds the project for production.
3. yarn preview: Previews the production build.

## Dependencies

1. Vite: ^4.0.0
2. Apache ECharts: ^5.4.0
3. Mantine v7: ^7.0.0
4. TypeScript: ^4.0.0

## License

This project is licensed under the MIT License.

## Acknowledgments

1. Dataset provided for the project assignment.
2. Frameworks and tools used: Vite, Mantine v7, Apache ECharts.