Update functions.php

add Piechart function