Mount a javascript ruler with array

Asked

Viewed 256 times

2

I need to assemble a ruler like the drawing. I’m having trouble finding a logic so I’d like a help.

Setting:

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

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

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

inserir a descrição da imagem aqui

  • You’ve done something or you’re just starting from scratch?

  • I’ve done some things. I’m using a base . json to popular the water. You can see the base on the link: https://drive.google.com/open?id=0By3w49HPA-yGenV3TlRIaTRxYjQ. The scale I’m doing I posted an image on the link: https://drive.google.com/open?id=0By3w49HPA-yGZGpNIzOTJRms

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.