Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
linear scale value between two values

I have a three values.

let a = 10;
let b = 200;
let c = 140;

I want to make the line scale chart by which straight line starting point is 10 and end point is 140.

Now I have to make the calculation by which 140 value will be lie in between the line.

Its like 0, 50 & 100. ) is starting point, 100 is end point and 50 is the central point. 

So I pass the 50 percent so that it will be on the center.

I have made the UI. I just need to pass the percent value by which UI will be made.

Any suggestion for this will highly appreciable

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If I understand you right the formula you need is

(c-a)/(b-a)*100

or in javascript

((c-a)/(b-a)*100).toFixed(1)+'%`
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!