title: Calculating the scale factor for "bar rectangles" of Chart app
body: <p>I have an array of integer values </p>
  
  <pre><code>String[] values={3100,7500,8000,4200,88000,71000,32000};
  </code></pre>
  
  <p>that need to be scaled into a known height of my <code>JComponent</code> , the question is how to scale these values into e.g. h=600px?</p>
  
  <p>Here is a pic just for more clarification of what i want to achieve:
  <img src="https://i.stack.imgur.com/J8jJJ.jpg" alt="enter image description here"></p>
  
  <p>Thanks  </p>