Charts - Zoom

A specific part on Cartesian Charts can be zoomed using mouse drag.


<p:chart type="line" model="#{chartView.zoomModel}" style="height:300px;" widgetVar="chart"/>
<br />    
<p:commandButton type="button" value="Reset" icon="pi pi-ban" onclick="PF('chart').resetZoom()"/>