title: Simple HTML bar graph generation
body: <p>I am a c++ Linux guy who is trying to make a bar graph using html or js.
  I tried googling on how to generate the bar graph. But couldn't understand it properly.</p>
  
  <p>I have a file (content.txt) with the following content:</p>
  
  <pre><code>A - 0
  B - 3
  C - 1
  D - 2
  E - 2 
  F - 0
  </code></pre>
  
  <p>All the alphabets needs to be represented in Y axis.
  The bar color is based on the value in the file. (always the value will be in the range of 0 to 3)</p>
  
  <p>All the four values needs to be represented in different colors.</p>
  
  <p>The graph looks like below.
  Please help me out in reading the content.txt file (which dynamically changes its value of A to F within 0 to 3) &amp; represent as a graph.<img src="https://i.stack.imgur.com/7BRcr.jpg" alt="enter image description here"></p>