Skip to content

Latest commit

 

History

History
90 lines (55 loc) · 2.66 KB

README.md

File metadata and controls

90 lines (55 loc) · 2.66 KB

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

Production Analysis Table

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

Production Analysis Table

Average Yield Bar Chart

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

Average Yield Bar Chart

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

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.