Mounting a javascript rule with array

2

I need to put a ruler like the drawing. I'm having a hard time finding logic so I'd like some help.

Scenery :

There are two arrays (one with temperature data and one with pressure data). I need to convert these two arrays into two scales with different ranges, but the two are dependent.

  

Example: -90 ° C = 0.5 bar (a).

I'm using react-native-svg to draw the ruler, this is the only component that works on the framework I'm using (React Native for mobile).

    
asked by anonymous 26.07.2016 / 03:23

0 answers