pieChart is now generated with 3rd click of the switch button