Charts - Area

AreaChart is implemented by enabling stacked and fill options of lineChart.

Source

<p:lineChart id="filled" value="#{chartBean.categoryModel}" legendPosition="ne" fill="true"
             title="Filled" style="height:300px;margin-top:20px" xaxisLabel="Year" yaxisLabel="Births" />

<p:lineChart id="stacked" value="#{chartBean.categoryModel}" legendPosition="ne" stacked="true" fill="true""
             title="Stacked and Filled" style="height:300px;margin-top:20px" xaxisLabel="Year" yaxisLabel="Births" />