title: How to show all x-axis values in a graph on Primefaces
body: <p>I got a barchart that shows me the exact information i want, but i got a little problem on the view of the chart. It only shows the 1st field and not all the field on the x-axis. In this case, shows names.</p>
  
  <p>This is my bean:</p>
  
  <pre><code>public void graficar(){
      barra = new BarChartModel();
  
      for (int i = 0; i &lt; lista.size(); i++){
          ChartSeries serie = new BarChartSeries();
          serie.setLabel(lista.get(i).getNombres());
          serie.set(lista.get(i).getNombres(), lista.get(i).getCantidad());
          barra.addSeries(serie);
      }
  </code></pre>
  
  <p>And this is the part where i give the data for the axes.</p>
  
  <pre><code>barra.setTitle("Cantidad de prospectos asignados a ejecutivos");
      barra.setLegendPosition("ne");
  
      Axis xAxis = barra.getAxis(AxisType.X);
      xAxis.setLabel("Ejecutivo");
  
      Axis yAxis = barra.getAxis(AxisType.Y);
      yAxis.setLabel("Prospectos");
      yAxis.setMin(0);
      yAxis.setMax(10);
  </code></pre>
  
  <p>This is my xhtml:</p>
  
  <pre><code>&lt;h:form&gt;
              &lt;h:panelGrid id="panel" style="alignment-adjust: middle"&gt;
                  &lt;p:chart type="bar" model="#{dashboardBean.barra}"
                           class="center-block"
                           rendered="#{dashboardBean.barra != null}"
                           responsive="true"/&gt;
              &lt;/h:panelGrid&gt;
  
          &lt;/h:form&gt;
  </code></pre>
  
  <p>Any sugestion?</p>