Add class hooks to piechart