Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation for labelswith minValue not working as expected #22

Open
Gunjer opened this issue Jan 7, 2020 · 1 comment
Open

Calculation for labelswith minValue not working as expected #22

Gunjer opened this issue Jan 7, 2020 · 1 comment

Comments

@Gunjer
Copy link

Gunjer commented Jan 7, 2020

While including a minValue, the calculateLabelFromValue function was not working as expected.
Current Formula: value / maxValue - minValue - src/utils/calculate-label-fromvalue.js
Example Testdata:
value = 4.4
maxValue = 5.0
minValue = 1.0
value / (maxValue - minValue) > 1

Suggested revision: (value - minValue) / (maxValue - minValue)

@cnrsbtogll
Copy link

I need to do minValue = {90} maxValue = {140} for blood pressure indication. but i get this error.

Screenshot_1582756246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants