title: Closing up blank space in JFreeChart bar chart
body: <p>I am using <code>JFreeChart</code> and would like to display a bar chart of player's scores, with the score on the y-axis and the player's games grouped on the x-axis.</p>
  
  <p>e.g.</p>
  
  <pre><code>String[] {Player name, score, game number}
  Player 1, 10 , 1
  Player 1, 12 , 2
  Player 1, 15 , 3
  Player 2, 11 , 1
  Player 3, 18 , 1
  </code></pre>
  
  <p>Because the players do not have to play the same number of games, this results in a lot of blank space when the dataSet is created, as it tries to plot a bar for Player 2 &amp; 3 games 2 &amp; 3.</p>
  
  <pre><code>data.addValue(score, game number, player name);
  </code></pre>
  
  <p>Output: (the numbers dont quite match, this was just a quick test I knocked up)
  <img src="https://i.stack.imgur.com/pZ37i.png" alt="Note the blank space in player 1 game 3 and player 3 games 1 and 2"></p>
  
  <p>Can anybody help me with how to close up this blank space? In theory player 1 could go on to play 100s of games with player 2 and 3 playing only a few, so it would look quite ridiculous!
  I am new to JFreeChart so there is probably an obvious solution!</p>
  
  <p>Thank you in advance for your help.</p>