title: Histogram in JavaScript?
body: <p>I have this dataset for income:</p>
  
  <pre>
  Income      Number of people
  0           245981
  8.8         150444
  30          126063
  49.9        123519
  70          115029
  90.7        277149
  109.1       355768
  130         324246
  150.3       353239
  170.2       396008
  190         396725
  210         398640
  230.1       401932
  250         416079
  270         412727
  289.8       385192
  309.7       343178
  329.7       293707
  349.6       239982
  369.7       201557
  389.3       165132
  442.3       442075
  543.4       196526
  679.9       146784
  883.9       48600
  1555        44644
  </pre>
  
  <p><em>(As you can see, the width between income levels gets larger towards the end.)</em></p>
  
  <ol>
  <li>How do I make an accurate histogram of this data in JavaScript? (On
  a linear x-axis scale with a range from for example 0 - 2000)</li>
  <li>How do I factor out the number of people to show only percentages at
  different intervals?</li>
  <li>If I'd like to place exactly 100 symbols representing the data, how
  do I decide where to place them?</li>
  </ol>