Use rich:chart

Based on https://issues.jboss.org/browse/RFPL-3507. I implement required behaviour.