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"/>

<p:commandButton type="button" value="Reset" icon="ui-icon-cancel" onclick="PF('chart').resetZoom()"/>