title: Jfreechart - Display all x values in a category dataset
body: <p>I have drawn a jfreechart using DefaultCategoryDataset. The problem is even I have added around 150 values (as columns and rows) it only shows only the last 11 x values in the graph. Is there a way to make the graph to show all the x values in the range?</p>
  
  <p>Thanks a lot.</p>
  
  <p>My <code>createDataset()</code> method is as below.</p>
  
  <pre><code>public CategoryDataset createDataset() {
      final String series1 = "Type1";
      final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
      String pattern = "\\s";
      Pattern splitter = Pattern.compile(pattern);
      String[] myResult = splitter.split(resultText);
      for (String str : myResult) {
          String head = str.substring(0, str.indexOf('('));
          for(int j = 0; j &lt; str.length(); j++) {
              dataset.addValue(parse(str), series1, head);
          }
      }
      return dataset;
  }
  </code></pre>
  
  <p>And I have created the JFreechart as LineChart.</p>
  
  <p>Thanks a lot.</p>