A "Score Visualization" is a simple widget needing only the name, and the BMI score of the animal which is between 0 and 120, and will nicely visualize the BMI score according to this calculation:
-
if the BMI score less than 30 it will be underweight and the yellow color represents it with an indicator showing the percentage on the bar.
-
if the BMI score is between 30 and 90 it will be normal and the green color represents it with an indicator showing the percentage on the bar.
-
if the BMI score is bigger than 90 it will be overweight and the orange color represents it with an indicator showing the percentage on the bar.
This application was built with React.
- HTML, CSS, TypeScript.
- React.
- VisualStudio Code, Git, & GitHub.
- NodeJs
- Git
To run this project, you only need a computer with a browser installed, and follow these steps:
- In your terminal, in the folder of your preference, type the following bash command to clone this repository:
git clone git@github.com:Maha-Magdy/score-visualization.git
- Now that you have already cloned the repo run the following commands to get the project up and running:
cd score-visualization
npm install
npm start
- To change the name of the animal, and its BMI score to see the difference in the UI go to
src/App.tsx
and change the value of the props name, and bmiScore that belong to ScoreVisualization component then save.
👤 Maha Magdy
- GitHub: Maha-Magdy
- Twitter: @Maha_M_Abdelaal
- LinkedIn: Maha Magdy
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.