Git Product home page Git Product logo

Comments (3)

johnemurphy1 avatar johnemurphy1 commented on May 18, 2024

Question on the average temperature. Is that taking the temperatures tracked on Chart.js, for example, and calculating a number or will it be pulling from somewhere else?

from corona-tracker.

SomeMoosery avatar SomeMoosery commented on May 18, 2024

My guess is that we'll have a database entry temperature: Number that will store the temperature of a specific user for each "checkup" they complete (each time they fill out the form).

I'll leave implementation details up to the those assigned to both Chart.js and this ticket, as there's many ways to go about this. I haven't dug too deeply into how you're all implementing the UI code, but I'd imagine when rendering the DiagnosticComponent component, you could do one API call and store an array of all checkup->temperatures for a given user. You could pass this array into Chart.js in order to plot each temperature, and then sum up the temperatures and pass the average into Temperature.js.

This is just one idea though - you could just as easily do two API calls, one within 'Temperature.jsand another withinChart.js` and manipulate the data within each component there.

from corona-tracker.

SomeMoosery avatar SomeMoosery commented on May 18, 2024

Closing as #85 created the component with a default value. I'll open a new ticket for getting this data associated with each user from the database now that we have the scaffolding merged into master

from corona-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.