Init codes for Pie Chart