transform pie on drawChart