title: Algorithm for presenting combinations easy to read
body: <p>Given a list of products/computers to buy I would like to give the customer an easy overview of the possible spec combinations.</p>
  
  <p>My input (on the left in the image below) is a list of combinations.
  The desired output (on the right in the image below) is a graphical representation.</p>
  
  <p>The amount of data is limited so performance is not critical</p>
  
  <p><strong>QUESTION</strong></p>
  
  <p>Is there an algorithm or method that will help me produce this?</p>
  
  <p><a href="https://i.stack.imgur.com/6XMPD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6XMPD.png" alt="enter image description here"></a></p>
  
  <p>EDIT: updated image</p>