Charts - Responsive

Chart size can adjust to screen size in responsive manner. In this example, first chart is responsive and second one is not.


<p:chart type="line" model="#{chartView.lineModel1}" style="height:300px;" responsive="true"/>

<p:chart type="line" model="#{chartView.lineModel2}" style="height:300px;"/>