Workaround for the pie charts update problems.

Added a call to the function onResize() from the function update(). Now
you can redefine de values of the chart on the run and it will show the
changes.