Charts - Live

Votes are updated live periodically using poll component and displayed on a pie chart.

<h:form>
    <p:poll interval="3" update="votes" />
    <p:chart id="votes" type="pie" model="#{chartView.livePieModel}" style="width:400px;height:300px"/>
</h:form>