title: primefaces linechart not visible
body: <p>This is my .xhtml</p>
  
  <pre><code>&lt;div id="detailed_div_graph" align="center"&gt;
              &lt;p:lineChart id="linear" value="#{ChartBean.linearModel}" legendPosition="e" 
                  title="Medical Data" minY="0" maxY="10" style="height:300px"/&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>This is my <code>ChartBean</code> code:</p>
  
  <pre><code>public class ChartBean implements Serializable {
  
  private CartesianChartModel linearModel;
  
  public ChartBean() {  
      createLinearModel();  
  }
  
  public CartesianChartModel getLinearModel() {  
      return linearModel;  
  } 
  
  private void createLinearModel() {  
      linearModel = new CartesianChartModel();  
  
      LineChartSeries series1 = new LineChartSeries();  
      series1.setLabel("BP");  
  
      series1.set(1, 2);  
      series1.set(2, 1);  
      series1.set(3, 3);  
      series1.set(4, 6);  
      series1.set(5, 8);  
  
      linearModel.addSeries(series1);  
  }  
  
  }
  </code></pre>
  
  <p>What's wrong with my code?</p>