Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda