I have an array of integer values
String[] values={3100,7500,8000,4200,88000,71000,32000};
which need to be scaled to a known height of my JComponent , the question is how to scale these values, for example, h = 600px?
Here is a script for a more detailed explanation of what I want to achieve: 
thanks
source share