/PatientBloodType--App

Create a app that filter patient blood types on the data, then return patient info.

Primary LanguageJavaScriptMIT LicenseMIT

Filter Blood Types App

formfilter

Background

Create a app that filter patient blood types on the data, then return patient stats.

Goals

  • Use d3 to add an event listener to the form button that does the following:

    • Selects the value of the input element.

    • Uses the form input to filter the data by bloodType.

  • Use the math.js library to calculate the mean, median, mode, variance, and standard deviation for the age field in the filtered data.

  • Populate the unordered list ul with li elements for each summary statistic.

  • Use filter() to filter the data by bloodType.

  • Use map() to create an array of age values from the filtered data.

  • Use the math.js library to calculate the summary statistics.

Run Locally

Run this command git clone https://github.com/meuwebsite/PatientBloodType--App/

Make sure you have installed in your computer all libraries used above

Double check if you are in the right directory in you terminal ...that often cause errors

Terminal Should be addressed at folder: flask_app

Run the command: python app.py in your terminal

Copy the output link and paste in your Browser

You are now in the dev environment and you can play around