/wine-stat-frontend

To calculate statistics on Wine Data Set

Primary LanguageTypeScript

Wine Statistics App

This is a simple React application that displays statistics about wine data. It calculates and presents the mean, median, and mode for the Flavanoids and Gamma attributes of the wine dataset.

Installation

To run this application locally, follow these steps:

  1. Clone this repository to your local machine.

  2. Install the dependencies using Yarn:

    yarn install
  3. Start the development server:

    yarn start

This will launch the application in your browser at http://localhost:3000.

Usage Once the application is running, you will see the wine statistics displayed in a table format. The table shows the mean, median, and mode for Flavanoids and Gamma attributes of the wine data.

Screenshot:

alt text

Code Files Here are the main code files in this repository:

App.tsx: The root component of the application. WineStatistics.tsx: Component that calculates and displays the wine statistics. utils.ts: Utility functions to calculate statistics from wine data. Feel free to explore and modify these files to suit your needs.

Data The wine data used in this application is stored in the Wine-Data.json file. You can update or replace this file with your own wine data if desired.

Contributing Contributions are welcome! If you find any issues or have suggestions for improvements, please create a new issue or submit a pull request.

License This project is licensed under the MIT License.